To enable the Compliance API, see the setup guide.
Set up the Compliance APICode-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
Headers
Returns
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"Response 200
{
"id": "cart_xyz789",
"type": "code_artifact_deleted"
}Returns Examples
Response 200
{
"id": "cart_xyz789",
"type": "code_artifact_deleted"
}