Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

删除项目

DELETE/v1/compliance/apps/projects/{project_id}

出于合规目的删除项目。

硬删除该项目及其所有关联数据,包括:

  • 所有项目文档和文件
  • 所有角色分配
  • 知识库(如果启用了 RAG)
  • 同步源

项目不得有任何关联的对话——如果存在对话则返回 409。

Path parameters
project_id: string

The project ID (tagged ID, e.g., claude_proj_abc123)

Headers
"x-api-key": optional string
Returns
id: string

The ID of the Claude project that was deleted

type: optional "claude_project_deleted"

Constant string confirming deletion.

defaultclaude_project_deleted
删除项目
cURL
curl https://api.anthropic.com/v1/compliance/apps/projects/$PROJECT_ID \
    -X DELETE \
    -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
Returns Examples
Response 200
{
  "id": "id",
  "type": "claude_project_deleted"
}