Skip to main content
 print this page

Delete an AI project

DELETE 

/ai/projects/:project_id

Starts deleting an AI project in the background. You must be an owner of the project. The project status is set to deleting and the work is queued. A 200 means deletion was accepted, not that it has finished — poll GET /ai/projects/{project_id} until it returns 404. If background deletion fails, status becomes delete-failed and Message holds the error. The original call still returned 200. Deletion removes the project's data, chats, comments, avatar, guard-rail link, and access entries. Notes are detached from the project but not deleted. Linked knowledge bases and agents are unlinked, not deleted. Calling this again after the project is gone returns 400.

Request

Responses

Deletion was accepted and is running in the background. The project is not gone yet; ProjectStatus is deleting.

Response Headers
    Access-Control-Allow-Origin
    Access-Control-Allow-Methods
    Access-Control-Allow-Headers
    Strict-Transport-Security