Delete a project
Only a signed-in person with a fresh second factor deletes a project, and only one whose role makes projects (it reaches every project); an API key answers `person_required`.
Only a signed-in person with a fresh second factor deletes a project, and only one whose role makes projects (it reaches every project); an API key answers person_required. Every key and service grant of the project is revoked in the same change and refused everywhere within 60 seconds, and the project no longer answers. Its sandboxes are deleted by the cell in the background. A repeat answers not_found.
For people only: a signed-in person with a fresh second factor makes this call, from the dashboard. Any API key is refused with person_required.
Request
curl -X DELETE "https://api.pod.mapier.ai/v1/projects/prj_3ahrz6dmv29gqy5ckt18fp" \
-H "Authorization: Bearer $POD_PERSON_TOKEN"Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
project_id | path | string | Yes | |
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
Answer
200. The project, deleted, and how many keys and grants went with it.
{
"project": {
"id": "prj_3ahrz6dmv29gqy5ckt18fp",
"organisation": "org_3ahrz6dmv29gqy5ckt18fp",
"name": "example",
"idle_s": 60,
"created_at": "2026-11-23T12:00:00.000Z",
"cell_endpoint": "https://app.example.com"
},
"deleted_at": "2026-11-23T12:00:00.000Z",
"keys_revoked": 0,
"grants_revoked": 0
}| Field | Type | Always | What it is |
|---|---|---|---|
project | Project | Yes | |
deleted_at | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
keys_revoked | integer | Yes | At least 0. |
grants_revoked | integer | Yes | At least 0. |
Errors
The refusals this call is known for: person_required, forbidden, not_found. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.
In the SDKs
| Client | Call |
|---|---|
| TypeScript | pod.projects.delete(id) |
| Python | pod.projects.delete(id) |