Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

코드 아티팩트 삭제

DELETE/v1/compliance/apps/code/artifacts/{artifact_id}

코드 아티팩트와 모든 버전을 영구적으로 삭제합니다. 이는 되돌릴 수 없는 파괴적 작업입니다. 200 응답은 삭제가 시작되었고 아티팩트가 확보되었음을 의미합니다. 콘텐츠 제거는 비동기적으로 완료됩니다.

존재하지 않거나 다른 상위 조직에 속한 아티팩트에 대해서는 404를 반환합니다. 이미 삭제된 아티팩트를 반복 삭제하는 경우에도 404를 반환합니다.

Path parameters
artifact_id: string

The Artifact ID (tagged ID, e.g., cart_abc123)

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

The ID of the Artifact that was deleted

type: "code_artifact_deleted"

Constant string confirming deletion

defaultcode_artifact_deleted
코드 아티팩트 삭제
cURL
curl https://api.anthropic.com/v1/compliance/apps/code/artifacts/$ARTIFACT_ID \
    -X DELETE \
    -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
Returns Examples
Response 200
{
  "id": "cart_xyz789",
  "type": "code_artifact_deleted"
}