DELETE /api/articles/[id]
Delete an article you own. Its sections and notes cascade away. A row you don't own returns 404.
There’s no dedicated CLI delete command; manage deletion from the web app, or call this route directly.
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
DELETE https://scripto.codika.io/api/articles/{id} Auth
Authorization: Bearer scripto_…
Response (200)
{ "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
curl -sS -X DELETE "https://scripto.codika.io/api/articles/$ID" \
-H "Authorization: Bearer $SCRIPTO_API_KEY" Deletion is permanent and cascades — every section and Brief note of the article goes with it. There is no undo.
Next
- GET /api/articles — confirm the id first.