Attachment

Delete attachment

Delete an attachment by id.

Deleting an attachment moves the attachment to the trash, where it can be restored later. To permanently delete an attachment (or "purge" it), the endpoint must be called on a trashed attachment with the following param purge=true.

Permissions required: Permission to view the container of the attachment. Permission to delete attachments in the space. manage/content permission for the space (if attempting to purge).

Note: To find the display name for each permission ID, call the Get available space permissions API.

delete/attachments/{id}

Request

  • Base URL
    https://no-default/wiki/api/v2
  • URL
    https://no-default/wiki/api/v2/attachments/{id}
  • Auth
    • HTTP basic
    • or OAuth 2
      Authorization code: https://auth.atlassian.com/authorize
      Token URL: https://auth.atlassian.com/oauth/token scopes: delete:attachment:confluence

Path parameters

idinteger required

The ID of the attachment to be deleted.

Query parameters

purgeboolean

If attempting to purge the attachment.

Response

Returned if the attachment was successfully deleted.

Changes

No recorded changes to this operation across all 5 revisions of this API.