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"
}