Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

Elimina Artifact di Code

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

Elimina definitivamente un Artifact di Code e tutte le sue versioni. Si tratta di un'operazione distruttiva che non può essere annullata. Una risposta 200 significa che l'eliminazione è avviata e l'Artifact è stato acquisito; la rimozione del contenuto viene completata in modo asincrono.

Restituisce 404 per gli Artifact che non esistono o appartengono a un'altra organizzazione padre. Restituisce 404 in caso di eliminazione ripetuta di un Artifact già eliminato.

Path parameters
artifact_id: string

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

Headers
"anthropic-version": string

The version of the Claude API to use. Send an available version on every request. A request that sends any other value, including an empty one, returns a 400 error. This endpoint treats a request that omits this header as version 2023-06-01; some other Compliance API endpoints return a 400 error instead.

See API versions for the available versions.

"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

Elimina Artifact di Code
cURL
curl https://api.anthropic.com/v1/compliance/apps/code/artifacts/$ARTIFACT_ID \
    -X DELETE \
    -H 'anthropic-version: 2026-10-21' \
    -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
Returns Examples
Response 200
{
  "id": "cart_xyz789",
  "type": "code_artifact_deleted"
}