Delete a file

Use this request to delete an attached file.

Request format

To delete a file, use an HTTP DELETE request:

DELETE /v2/issues/<issue-id>/attachments/<attachment-id>/
Host: https://api.tracker.yandex.net
Authorization: OAuth <OAuth token>
X-Org-Id: <organization ID>
Resource
<issue-id>
Issue ID or key.
<attachment-id>

Unique identifier of the file.

Request to delete a file attached to the task JUNE-2:

  • Uses the HTTP DELETE method.

DELETE /v2/issues/JUNE-2/attachments/4159/ HTTP/1.1
Host: https://api.tracker.yandex.net
Authorization: OAuth <OAuth token>
X-Org-Id: <organization ID>

Response format

For a successful request, the API returns a 200 response.

Possible response codes

204

The DELETE request successfully deleted the object.

404
The requested object was not found. You might have entered an incorrect object ID or key value.