---
title: "Delete content"
method: DELETE
path: "/api/v1/content/{id}"
tags: ["Content"]
---

# Delete content

`DELETE /api/v1/content/{id}`

## Request

- Base URL: `https://app.promptingco.com`
- URL: `https://app.promptingco.com/api/v1/content/{id}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer
  - API key in cookie `better-auth.session_token`

Delete one content item by id. A live document is soft-deleted along with its linked draft and tracked URL; an unpublished review draft is deleted directly, including drafts still in `generating`.

## Path parameters

- `id` string, required

## Response `200`

Successful response

- object
  - `ok` true, required
  - `data` object, required
    - `kind` 'document' | 'draft', required
    - `deletedCount` integer, required
    - `failedCount` integer, required
    - `deleted` object[], required
      - `id` string, required
      - `title` string
    - `failed` object[], required
      - `id` string, required
      - `message` string, required

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Not found
- `422`: Validation failed
- `500`: Internal server error

---

[API](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api.md) - [All operations](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api/llms.txt) - [OpenAPI document](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api/revisions/c0451ea10e9a?raw)
