Repository Public
1---2title: Delete Code Artifact3url: https://platform.claude.com/docs/en/api/compliance/code/artifacts/delete4---56# Delete Code Artifact78**DELETE** `/v1/compliance/apps/code/artifacts/{artifact_id}`910Permanently deletes a Code Artifact and all its versions. This is a11destructive operation that cannot be undone. A 200 response means the12deletion is initiated and the Artifact is claimed; content removal13completes asynchronously.1415Returns 404 for Artifacts that don't exist or belong to another parent16organization. Returns 404 on a repeated delete of an already-deleted17Artifact.1819## Path parameters2021- `artifact_id: string`2223 The Artifact ID (tagged ID, e.g., cart_abc123)2425## Headers2627- `"x-api-key": optional string`2829## Returns3031- `type: "code_artifact_deleted"`3233 Constant string confirming deletion3435 default: code_artifact_deleted3637- `id: string`3839 The ID of the Artifact that was deleted4041## Example4243```bash44curl https://api.anthropic.com/v1/compliance/apps/code/artifacts/$ARTIFACT_ID \45 -X DELETE \46 -H 'anthropic-version: 2023-06-01' \47 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"48```4950### Response (200)5152```json53{54 "id": "cart_xyz789",55 "type": "code_artifact_deleted"56}57```58