Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

Code-Artifact löschen

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

Löscht ein Code-Artifact und alle seine Versionen dauerhaft. Dies ist ein destruktiver Vorgang, der nicht rückgängig gemacht werden kann. Eine 200-Antwort bedeutet, dass die Löschung eingeleitet und das Artifact beansprucht ist; die Entfernung des Inhalts wird asynchron abgeschlossen.

Gibt 404 für Artifacts zurück, die nicht existieren oder zu einer anderen übergeordneten Organisation gehören. Gibt 404 bei einem wiederholten Löschen eines bereits gelöschten Artifacts zurück.

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
Code-Artifact löschen
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"
}