The Delete Project endpoint permanently removes a project from the platform along with every record linked to it. Before deletion, the endpoint verifies that the project belongs to the authenticated user to prevent accidental or malicious removal of another user’s data. Once the project is deleted, the operation cannot be reversed.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nayalsaurav/deploy-your-app/llms.txt
Use this file to discover all available pages before exploring further.
DELETE /api/v1/projects/:id
Authentication
This endpoint requires an active session. Include your session cookie with every request. See Authentication for details on obtaining a session token.
Request
Path Parameters
The unique project ID (cuid) of the project to delete.
Response
A successful200 OK response returns a simple confirmation message:
Response Fields
Confirmation message —
"Project deleted successfully".Example
Error Responses
| Status | Error Message | Description |
|---|---|---|
401 | "Unauthorized" | No valid session cookie was provided. |
404 | "Project not found or unauthorized" | No project with the given ID exists, or it belongs to another user. |
500 | "Failed to delete project" | An unexpected server-side error occurred. |