Skip to main content
DELETE
https://genui.sh
/
api
/
artifacts
/
{id}
Delete Artifact
curl --request DELETE \
  --url https://genui.sh/api/artifacts/{id}
{
  "id": "art_abc123",
  "status": "deleted",
  "deletedAt": "2024-01-16T14:30:00Z"
}
Delete an artifact. This is a soft delete - the artifact is marked as deleted but can be restored within 30 days.

Request

id
string
required
The artifact ID to delete
permanent
boolean
Set to true for permanent deletion (cannot be undone)

Response

{
  "id": "art_abc123",
  "status": "deleted",
  "deletedAt": "2024-01-16T14:30:00Z"
}

Code Examples

curl -X DELETE https://genui.sh/api/artifacts/art_abc123 \
  -H "Authorization: Bearer $GENUI_API_KEY"

Permanent Deletion

To permanently delete an artifact without the ability to restore:
curl -X DELETE "https://genui.sh/api/artifacts/art_abc123?permanent=true" \
  -H "Authorization: Bearer $GENUI_API_KEY"
Permanent deletion cannot be undone. The artifact and all associated data will be immediately removed.