---
title: "Delete a chapter or scene"
method: DELETE
path: "/stories/{id}/chapters/{chapterId}"
tags: ["chapters"]
---

# Delete a chapter or scene

`DELETE /stories/{id}/chapters/{chapterId}`

## Request

- Base URL: `https://aistoryhub.co/api/v1`
- URL: `https://aistoryhub.co/api/v1/stories/{id}/chapters/{chapterId}`
- Auth: HTTP bearer

Irreversible. The first call always fails with `confirmation_required`; retry with `confirm: true` to actually delete.

## Path parameters

- `id` string, uuid, required
- `chapterId` string, uuid, required

## Request body

- object
  - `confirm` boolean

## Response `200`

Deleted.

- object
  - `success` boolean

## Other responses

- `401`: Missing, malformed, invalid, revoked, or expired token.
- `403`: The token lacks the scope this endpoint requires.
- `404`: The resource does not exist or you do not own it.
- `409`: Destructive action needs `confirm: true` to proceed, or the resource changed since you last read it.
- `429`: Too many requests. Retry after the delay in the `Retry-After` header.

---

[API](https://skmtc.dev/aistoryhub/apis/aistoryhub-api.md) · [All operations](https://skmtc.dev/aistoryhub/apis/aistoryhub-api/llms.txt) · [OpenAPI document](https://skmtc.dev/aistoryhub/apis/aistoryhub-api/revisions/0cfd2c14ae12?raw)
