Skip to content

Delete Project

DELETE
/api/projects/{project_id}

Delete a project permanently.

Permanently deletes the specified project from ChromaDB through ProjectManager including all associated intelligence data, analytics, and metadata. This operation cannot be undone.

The system prevents deletion of the last remaining project to ensure at least one project always exists in the system.

Args: project_id: Unique project identifier to delete

Returns: None: 204 No Content on successful deletion

Raises: HTTPException: 400 if attempting to delete the last project HTTPException: 404 if project not found HTTPException: 500 if deletion operation fails

Example Request: DELETE / api / projects / proj_abc123

Example Success Response: HTTP/1.1 204 No Content

Example Error Response (last project): json { "detail": "Cannot delete the last project" }

project_id
required
Project Id
string

Successful Response

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object