Scripto docs
View as Markdown

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

HTTPcodeCause
401unauthenticatedMissing or invalid key.
404not-foundNo such article, or you don’t own it.
500internalBackend 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