Delete a work item attachment
delete_attachmentRemove a work item attachment by its ID or unique file name. Detaches the link from the work item; the stored file remains because Azure DevOps lacks a delete API.
Instructions
Remove an attachment from a work item by attachment id or by a file name that is unique on the work item. Only the link is removed; Azure DevOps has no API to delete the stored file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Exact server-side file name. Works only when the name is unique on the work item; otherwise pass attachmentId. | |
| workItemId | Yes | Work item ID (unique within the collection). | |
| attachmentId | No | Attachment GUID as returned by list_attachments (the last segment of the attachment URL). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| removed | Yes | ||
| workItemId | Yes | ||
| workItemRev | Yes |