To enable the Compliance API, see the setup guide.
Set up the Compliance APIDelete project
DELETE/v1/compliance/apps/projects/{project_id}
Delete a project for compliance purposes.
Hard-deletes the project and all its associated data including:
- All project documents and files
- All role assignments
- Knowledge base (if RAG is enabled)
- Sync sources
Project must have no attached chats - returns 409 if chats exist.
Path parameters
Headers
Returns
Delete project
cURL
curl https://api.anthropic.com/v1/compliance/apps/projects/$PROJECT_ID \
-X DELETE \
-H 'anthropic-version: 2023-06-01' \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"Response 200
{
"id": "id",
"type": "claude_project_deleted"
}Returns Examples
Response 200
{
"id": "id",
"type": "claude_project_deleted"
}