DELETE /v1/projects/{project_id}
Deletes an empty project: it must have no running sandboxes, open browser sessions or active routines (`project_not_empty`), and may not be the organization's last project (`last_project`). Its keys are revoked.

Authentication

Bearer Token (b3os_sk_ API key or b3os_pat_ token) API Key (cookie: __Host-b3os_session)

Path Parameters

project_id string required path
Example: "prj_01m5t3pf8heewxt65ej3dm577y"

Responses

200 The project was deleted.
application/json
id string REQUIRED
object string REQUIRED
deleted boolean REQUIRED
Enum: true
400 The request failed validation (`invalid_request`, `invalid_url`).
401 Missing, malformed, expired or revoked credentials (`unauthorized`).
403 Authenticated but not allowed (`forbidden`, `egress_denied`).
404 No such project in your organization (`project_not_found`).
409 The project still has live resources, or it is the last one (`project_not_empty`, `last_project`).
429 A rate, concurrency or quota limit applies (`rate_limited`, `concurrency_limited`, `quota_exceeded`).
500 Something failed inside B3OS (`internal`). Retry with backoff.
503 The node or the product is not available right now (`node_unavailable`, `product_unavailable`, `capacity_unavailable`).
curl -X DELETE 'https://beta-api.b3os.org/v1/projects/prj_01m5t3pf8heewxt65ej3dm577y' \  -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://beta-api.b3os.org/v1/projects/prj_01m5t3pf8heewxt65ej3dm577y', {  method: 'DELETE',  headers: {      "Authorization": "Bearer YOUR_API_TOKEN"  }});const data = await response.json();console.log(data);
import requestsheaders = {    'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.delete('https://beta-api.b3os.org/v1/projects/prj_01m5t3pf8heewxt65ej3dm577y', headers=headers)print(response.json())
200 Response
{  "id": "prj_01m5t59p860z6neq6dvmsejm58",  "object": "project",  "deleted": true}
Ask a question... ⌘I