Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Delete content

Trashes or purges a piece of Content, based on its ContentType and ContentStatus.

There are three cases:

  • If the content is trashable and its status is current, it will be trashed.

  • If the content is trashable, its status is trashed and the status query parameter in the request is trashed, the content will be purged from the trash and deleted permanently.

  • If the content is not trashable it will be deleted permanently without being trashed.

DELETE/rest/api/content/{id}
Path parameters
idstringrequired

the id of the content.

Query parameters
statusstring

the status of the content to be deleted.

Responses
200

Returned if successfully trashed.

204

Returned if successfully purged.

404

Returned if there is no content with the given id, or if the calling user does not have permission to trash or purge the content.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
409

Returned if there is a stale data object conflict when trying to delete a draft.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Parameters
Request
curl -X DELETE 'http://example.com:7990/confluence/rest/api/content/string' \
  -H 'Accept: application/json'
Response
Returned if successfully trashed.

Was this page helpful?