---
updatedAt: 2026-10-29T11:54:48.000Z
agentTools:
  projectIndex: https://docs.yotpo.com/llms.txt
---

# Delete an Answer

Use this endpoint to delete an answer to a specific question by `question_id`.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "App partners API",
    "description": "Endpoints for apps that Yotpo merchants install. The app-level webhook is defined separately, in webhooks.json.",
    "version": "2"
  },
  "servers": [
    {
      "url": "https://developers.yotpo.com"
    }
  ],
  "security": [
    {
      "X-Yotpo-Token": []
    }
  ],
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "paths": {
    "/v2/{account_id}/questions/{question_id}/answers/{answer_id}": {
      "delete": {
        "summary": "Delete an Answer",
        "description": "Use this endpoint to delete an answer to a specific question by `question_id`.",
        "operationId": "delete-an-answer",
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "description": "Your account's API app key",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "question_id",
            "in": "path",
            "description": "The question's unique identifier. Can be retrieved using [Retrieve All Questions](ref:retrieve-all-questions)",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "answer_id",
            "in": "path",
            "description": "The answer's unique identifier. Can be retrieved using [Retrieve All Questions](ref:retrieve-all-questions)",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"status\": {\n        \"code\": 200,\n        \"message\": \"OK\"\n    },\n    \"pagination\": null\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "integer",
                          "example": 200,
                          "default": 0,
                          "description": "HTTP status code."
                        },
                        "message": {
                          "type": "string",
                          "example": "OK",
                          "description": "Status message, such as `OK`."
                        }
                      },
                      "description": "Request status."
                    },
                    "pagination": {
                      "type": "null",
                      "description": "Always `null` for this endpoint."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid access token, or the token belongs to a different store.",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": "No such `account_id` or `access_token` doesn't match `account_id`"
                  }
                }
              },
              "application/json": {
                "examples": {
                  "Missing token": {
                    "summary": "No token sent (or sent as Authorization: Bearer)",
                    "value": {
                      "error": "invalid_request",
                      "error_description": "The access token is missing"
                    }
                  },
                  "Invalid token": {
                    "summary": "Token unknown, revoked or for another app",
                    "value": {
                      "error": "invalid_token",
                      "error_description": "The access token is invalid or has expired"
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "OAuth error code: `invalid_request` when no token was sent, `invalid_token` when the token is unknown, revoked or expired.",
                      "enum": [
                        "invalid_request",
                        "invalid_token"
                      ]
                    },
                    "error_description": {
                      "type": "string",
                      "description": "Human-readable reason for the error."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No answer with this `answer_id` on the question, or no such question.",
            "content": {
              "application/json": {
                "examples": {
                  "Answer not found": {
                    "value": "{\n    \"error\": \"Answer not found\",\n    \"code\": 5,\n    \"message\": \"Answer not found\",\n    \"details\": []\n}"
                  },
                  "Question not found": {
                    "value": "{\n    \"error\": \"Question not found\",\n    \"code\": 5,\n    \"message\": \"Question not found\",\n    \"details\": []\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "Error message.",
                      "example": "Answer not found"
                    },
                    "code": {
                      "type": "integer",
                      "description": "Yotpo error code.",
                      "example": 5
                    },
                    "message": {
                      "type": "string",
                      "description": "Error message, same as `error`.",
                      "example": "Answer not found"
                    },
                    "details": {
                      "type": "array",
                      "description": "Extra error details. Usually empty.",
                      "items": {
                        "description": "An error detail. Empty in every response we tested, so the item shape isn't documented."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "securitySchemes": {
      "X-Yotpo-Token": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Yotpo-Token",
        "description": "Send your app's access token for the merchant's store in the `X-Yotpo-Token` header of every request. To get a token, see [Generate Access Token](ref:generate-a-token). The API also reads the token from an `access_token` query parameter, but that isn't recommended: URLs end up in server and proxy logs. `Authorization: Bearer` is not supported."
      }
    }
  }
}
```

# Sibling pages

* [Retrieve Questions and Answers for a Product](https://docs.yotpo.com/reference/partners-retrieve-questions-and-answers-for-a-product.md)
* [Retrieve the Bottom Line for Questions and Answers](https://docs.yotpo.com/reference/partners-retrieve-the-bottom-line-for-questions-and-answers.md)
* [Create an Answer](https://docs.yotpo.com/reference/create-an-answer.md)
* [Retrieve Q\&A by Question ID](https://docs.yotpo.com/reference/retrieve-qa-by-question-id.md)
* [Update an Answer](https://docs.yotpo.com/reference/update-an-answer.md)