DELETE
https://api.craftkit.dev/v1/templates/{slug}slug. The row is retained (marked deleted) but its slug is freed, so
the same canonical slug can be recreated by POST /v1/templates or
PUT /v1/templates/:slug. This is the cleanup path for idempotent
provisioning and for retiring a template you no longer render.
Authorization
Bearer ck_live_… — must own the project.Path
The slug of the template to delete.
Response
200:
The deleted template’s id.
The original (now-freed) slug, echoed back.
ISO-8601 timestamp of the soft-delete.
404 — the operation is idempotent in effect.
Errors
| Status | code | Meaning |
|---|---|---|
| 401 | unauthorized | Missing/invalid key. |
| 404 | template_not_found | No live template with that slug in this project (already deleted, or never existed). |
cURL
200