---
title: DELETE /api/articles/[id]
description: Delete an article you own. Its sections and notes cascade away. A row you don't own returns 404.
---

<Note>

There's no dedicated CLI delete command; manage deletion from the web app, or call this route directly.

</Note>

Deletes the article **if you own it**, else returns 404 (no existence leak). The article's sections and notes cascade away via the foreign key.

## Endpoint

```text
DELETE https://scripto.codika.io/api/articles/{id}
```

## Auth

`Authorization: Bearer scripto_…`

## Response (200)

```json
{ "success": true, "data": { "id": "0a1b2c3d-…" } }
```

## Errors

| HTTP | `code` | Cause |
|---|---|---|
| 401 | `unauthenticated` | Missing or invalid key. |
| 404 | `not-found` | No such article, or you don't own it. |
| 500 | `internal` | Backend error. |

## curl

```bash
curl -sS -X DELETE "https://scripto.codika.io/api/articles/$ID" \
  -H "Authorization: Bearer $SCRIPTO_API_KEY"
```

<Warning>

Deletion is permanent and cascades — every section and Brief note of the article goes with it. There is no undo.

</Warning>

## Next

- **[GET /api/articles](/api-reference/list-articles)** — confirm the id first.
