Delete a file
Use this request to delete attached files.
To delete a file, use an HTTP
DELETE /v2/issues/<issue-id>/attachments/<attachment-id>/ Host: https://api.tracker.yandex.net Authorization: OAuth <OAuth token> X-Org-Id: <organization ID>
Issue ID or key.
Unique ID of the file.
Request for deleting a file attached to the
- An HTTP DELETE method is used.
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>
If the request is successful, the API returns a response with code 204.
Possible response codes
- The DELETE request is executed, the object was deleted.
- The requested object was not found. You may have specified an invalid object ID or key.