Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

Удаление Artifact кода

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

Безвозвратно удаляет Artifact кода и все его версии. Это деструктивная операция, которую нельзя отменить. Ответ 200 означает, что удаление инициировано и Artifact зарезервирован; удаление содержимого завершается асинхронно.

Возвращает 404 для Artifacts, которые не существуют или принадлежат другой родительской организации. Возвращает 404 при повторном удалении уже удалённого Artifact.

Path parameters
artifact_id: string

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

Headers
"anthropic-version": optional string

The version of the Claude API you want to use.

Read more about versioning and our version history here.

"x-api-key": optional string
Returns
type: "code_artifact_deleted"

Constant string confirming deletion

defaultcode_artifact_deleted
id: string

The ID of the Artifact that was deleted

Удаление Artifact кода
cURL
curl https://api.anthropic.com/v1/compliance/apps/code/artifacts/$ARTIFACT_ID \
    -X DELETE \
    -H 'anthropic-version: 2023-06-01' \
    -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
Returns Examples
Response 200
{
  "id": "cart_xyz789",
  "type": "code_artifact_deleted"
}