DELETE
/api/public/v1/projects/{projectId}Delete a project
Deletes the project and every ticket, milestone and goal filed in it — the widest delete in the module, and the reason it needs `projects:admin`. It all goes to the Trash for 30 days, and Settings → Trash in the console can restore it whole until then.
Required scope
The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Dev Tools → API, to an assistant or CLI sign-in when you approve or edit it under Dev Tools, and to a teammate under Employee → Permissions.
projects:admin
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Required | Project ID. |
DELETEExample request
curl
curl -X DELETE "https://www.pxb.app/api/public/v1/projects/{projectId}" \
-H "Authorization: Bearer your_access_token"200Example response
json
{
"message": "Project deleted successfully!",
"content": {
"projectId": "prj_a1b2c3",
"deletedTicketCount": 24
}
}In the console
The same thing done by hand, for anyone comparing the API against the screen they already use.