Delete content
DELETE {{baseUrl}}/api/content/:id?status=<string>
Moves a piece of content to the space's trash or purges it from the trash, depending on the content's type and status:
- If the content's type is pageorblogpostand its status iscurrent, it will be trashed.
- If the content's type is pageorblogpostand its status istrashed, the content will be purged from the trash and deleted permanently. Note, you must also set thestatusquery parameter totrashedin your request.
- If the content's type is commentorattachment, it will be deleted permanently without being trashed.
Permissions required: 'Delete' permission for the space that the content is in, and permission to edit the content.
Request Params
| Key | Datatype | Required | Description | 
|---|---|---|---|
| status | string | Set this to trashed, if the content's status istrashedand you want to purge it. |