Projects
Delete a project
DELETE
/api/v1/projects/{id}
Owner only. Deletes the project and all its data.
- API key access
- Read and write
- Project permission
- Project owner
- Success
- 200 — Deleted
Parameters
Path
| Parameter | Type | Notes |
|---|---|---|
id required |
string | Project id |
Example request
Replace tk_live_YOUR_KEY with your API key and the ids with your own.
curl -X DELETE 'https://trackerv2.marketingplanet.global/api/v1/projects/6650a4c2e1b3d5f7a9c1e301' \
-H 'Authorization: Bearer tk_live_YOUR_KEY'
const response = await fetch('https://trackerv2.marketingplanet.global/api/v1/projects/6650a4c2e1b3d5f7a9c1e301', {
method: 'DELETE',
headers: {
Authorization: 'Bearer tk_live_YOUR_KEY',
},
});
const result = await response.json();
if (!response.ok) throw new Error(`${result.error.code}: ${result.error.message}`);
console.log(result.data);
import requests
response = requests.delete(
"https://trackerv2.marketingplanet.global/api/v1/projects/6650a4c2e1b3d5f7a9c1e301",
headers={"Authorization": "Bearer tk_live_YOUR_KEY"},
)
result = response.json()
if not response.ok:
raise RuntimeError(f"{result['error']['code']}: {result['error']['message']}")
print(result["data"])
Example response
{
"data": {
"id": "6650a4c2e1b3d5f7a9c1e301",
"deleted": true
}
}
Response fields
| Field | Type | Notes |
|---|---|---|
data |
object | |
data.id |
string | |
data.deleted |
true |
Errors
Besides the errors any request can return (bad or missing key, plan, scope, rate limit), this endpoint can return:
| Status | error.code | Meaning |
|---|---|---|
| 404 | not-found | The resource does not exist or you cannot open it. Tracker does not reveal which. |
| 403 | owner-only | Only the project owner can do this. |
| 403 | forbidden | The account is restricted: reads still work, but changes that add or modify projects, pages or monitors are blocked (error.accountStatus is restricted). |
Errors always look like { "error": { "code": "…", "message": "…" } }. See Errors & limits.