Skip to main content
DELETE
https://api-zangtable.com
/
projects
/
{project}
DELETE /projects/{project}
curl --request DELETE \
  --url https://api-zangtable.com/projects/{project} \
  --header 'Authorization: <authorization>'
{
  "ok": true,
  "data": {},
  "error": {},
  "request_id": "<string>"
}
Deletes a project database after explicit slug confirmation.

Endpoint details

Authorization
string
required
Bearer pat_... (Project API Token). Keep this token on your backend/server.
project
string
required
Project slug. This acts as the Project ID in API paths.
ok
boolean
required
true for a successful response and false for an error response.
data
object | null
Endpoint-specific response data when ok is true; null on errors.
error
object | null
Error code and message when ok is false; null on success.
request_id
string
required
Request identifier you can use when troubleshooting a specific API call.

Authentication

Project API Token.

Parameters

Path: project string, required. Body: confirm_project_slug string, required, must exactly match {project}.

Notes

This removes the SQLite database file set for the project. Treat it as irreversible at the API level.

Request examples

Basic request:
curl -X DELETE "$BASE_URL/projects/{project}" \
  -H 'Authorization: Bearer pat_PROJECT_TOKEN' \
  -H 'Content-Type: application/json' \
  --data '{"confirm_project_slug":"example_project"}'
Full request:
curl -X DELETE "$BASE_URL/projects/{project}" \
  -H 'Authorization: Bearer pat_PROJECT_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'X-Operation-Key: edit-profile-email' \
  -H 'X-Operation-Run-Id: oprun_client_20260602_001' \
  --data '{"confirm_project_slug":"example_project"}'

Response examples

Success:
{
  "ok": true,
  "data": {
    "deleted": true,
    "project_slug": "example_project"
  },
  "error": null,
  "request_id": "req_20260602T012345_123456Z_abc123def456",
  "operation_key": "edit-profile-email",
  "operation_run_id": "oprun_20260602T012300_000000Z_a1b2c3d4e5f6",
  "operation_grouping_status": "accepted_provided_run",
  "meta": {
    "generated_at": "2026-06-02T01:23:45Z"
  }
}
Error or alternate response:
{
  "ok": false,
  "data": null,
  "error": {
    "code": "confirmation_required",
    "message": "confirm_project_slug must exactly match the project slug."
  },
  "request_id": "req_20260602T012345_123456Z_abc123def456",
  "meta": {
    "generated_at": "2026-06-02T01:23:45Z"
  }
}