---
ai:
  exclude: true
search:
  tags:
    - Content Resource
    - DELETE
seo:
  description: >-
    Trashes or purges a piece of Content, based on its ContentType… Reference
    for the DELETE /rest/api/content/{id} endpoint in the Confluence Data Center
    API.
sidebar:
  label: Delete content
  badge: DELETE
title: Delete content
type: openapi-operation
---
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}`

**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.
- `409` — Returned if there is a stale data object conflict when trying to delete a draft.
