API ReferencePages
Delete a page
Clears the page's shared draft, and — if the page is published — commits the removal of its MDX file to GitHub. Draft-only pages are removed instantly with draftOnly: true.
Authorization
session docsdev_admin<token>
Sealed (AES-256-GCM) session cookie issued by POST /api/admin/login or the GitHub OAuth callback.
In: cookie
Query Parameters
slug*string
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/api/admin/pages?slug=string"{ "ok": true, "draftOnly": true}{ "ok": false, "error": "string"}{ "ok": false, "error": "string"}{ "ok": false, "error": "string"}{ "ok": false, "error": "string"}