Removing an original text

Description

Removes a site's original text from Yandex.Webmaster.

Request format

Send a DELETE request to the operation address for the original-texts/text-id resource for the user's site:

DELETE https://api.webmaster.yandex.net/v3/user/{user-id}/hosts/{host-id}/original-texts/{text-id}/

Path parameters

NameRequiredTypeDefault valueDescription
user-idYesint64The user ID.
host-idYeshost idSite ID.
text-idYesstringID of an original text.

Response format

If successful, the server returns 204. The response body isn't passed.

Errors

403 Forbidden

The user ID for the token doesn't match the one specified in the request. In the examples below, {user_id} is the correct uid for the owner of the OAuth token.

{
  "error_code": "INVALID_USER_ID",
  "available_user_id": 1,
  "error_message": "Invalid user id. {user_id} should be used."
}
ParameterDescription
error_codeError code.
available_user_idID of the user who allowed access.
error_messageError message.

404 Not Found

The site isn't in the list of the user's sites, or rights to the site haven't been verified.

{
  "error_code": "HOST_NOT_VERIFIED",
  "host_id": "http:ya.ru:80",
  "error_message": "explicit error message"
}
ParameterDescription
error_codeError code.
host_idThe ID of the requested site.
error_messageError message.