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`. Permanent: there is no archive and nothing to restore.
Required scope
The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Settings → Company → API, 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.