provider Issue attachments DELETE
/rest/api/3/attachment/{id} @utdk/jira
/rest/api/3/attachment/{id} Delete attachment
Deletes an attachment from an issue.
This operation can be accessed anonymously.
**[Permissions](#permissions) required:** For the project holding the issue containing the attachment:
* *Delete own attachments* [project permission](https://confluence.atlassian.com/x/yodKLg) to delete an attachment created by the calling user.
* *Delete all attachments* [project permission](https://confluence.atlassian.com/x/yodKLg) to delete an attachment created by any user.
- id path required
- The ID of the attachment.
- string
Try it
Authentication
Configure credentials for The Jira Cloud platform REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import jira from '@utdk/jira';
await jira.removeattachment()