Delete Code Artifact
api/compliance/code/artifacts/delete
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/compliance/code/artifacts/delete Changed · +9 / -14 lines
# Delete Code Artifact ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Delete Code Artifact ### Path Parameters ### Header Parameters ### Returns ### Example #### Response
---- -title: Delete Code Artifact -url: https://platform.claude.com/docs/en/api/compliance/code/artifacts/delete ---- +# Delete Code Artifact -## Delete Code Artifact +**DELETE** `/v1/compliance/apps/code/artifacts/{artifact_id}` -**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
organization. Returns 404 on a repeated delete of an already-deleted Artifact. -### Path Parameters +## Path parameters - `artifact_id: string` The Artifact ID (tagged ID, e.g., cart_abc123) -### Header Parameters +## Headers - `"x-api-key": optional string` -### Returns +## Returns - `id: string`
Constant string confirming deletion - - `"code_artifact_deleted"` + default: code_artifact_deleted -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/compliance/apps/code/artifacts/$ARTIFACT_ID \ -X DELETE \ -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY" ``` -#### Response +### Response (200) ```json {