Delete Code Artifact
DELETE/v1/compliance/apps/code/artifacts/{artifact_id}
Permanently deletes a Code Artifact and all its versions. This is a destructive operation that cannot be undone. A 200 response means the deletion is initiated and the Artifact is claimed; content removal completes asynchronously.
Returns 404 for Artifacts that don't exist or belong to another parent organization. Returns 404 on a repeated delete of an already-deleted Artifact.
Delete Code Artifact
cURL
curl https://api.anthropic.com/v1/compliance/apps/code/artifacts/$ARTIFACT_ID \
-X DELETE \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"{
"id": "cart_xyz789",
"type": "code_artifact_deleted"
}Returns Examples
{
"id": "cart_xyz789",
"type": "code_artifact_deleted"
}