delete_attachment
Permanently delete a single Jira attachment by its numeric ID; irreversible, one call per attachment, with existence pre-check before removal.
Instructions
Permanently delete one attachment by its numeric id (DELETE /attachments/{id}). Irreversible, and there is no bulk form — one call per attachment. Ids come from list_attachments or from an upload_attachment response; the entity the attachment belongs to is not needed (ids are global, not per-entity). The DELETE itself answers 2xx even for an id that never existed or was already deleted, so the id is verified FIRST with GET /rest/tests/1.0/attachment/{id} (the one endpoint that 404s for a missing attachment): an unknown id fails without deleting anything, at the cost of downloading the attachment's FULL content first — deleting a large attachment transfers the whole file before removing it. Returns { deleted: true, id, existenceVerified: true }, or existenceVerified: false plus a note when that pre-check itself could not answer (the delete is still attempted, so success then does not prove the id existed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachmentId | Yes | Numeric attachment id, as returned by list_attachments or by an upload_attachment response |