curl --request DELETE \
--url https://api.example.com/artifacts/{artifact_type}/{id}{
"status": "<string>",
"id": "<string>"
}Remove an artifact from the registry
curl --request DELETE \
--url https://api.example.com/artifacts/{artifact_type}/{id}{
"status": "<string>",
"id": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/GingerlyData247/SOTeam4-P2/llms.txt
Use this file to discover all available pages before exploring further.
DELETE /artifacts/{artifact_type}/{id}
model - Machine learning modeldataset - Training or evaluation datasetcode - Code repository or script"deleted" on success404 - Artifact not found (already deleted or never existed)500 - Internal server error during deletion_registry._models).
artifacts/model/{id}.zipartifacts/dataset/{id}.zipartifacts/code/{id}.zip/artifact/model/{id}/lineage for dependent artifacts200 with success message404 (artifact not found)curl -X DELETE https://api.example.com/artifacts/model/12345
{
"status": "deleted",
"id": "12345"
}
{
"detail": "Artifact does not exist."
}
curl -X DELETE https://api.example.com/artifacts/model/old-version-123
# Delete the failed artifact
curl -X DELETE https://api.example.com/artifacts/model/failed-456
# Re-create with corrected data
curl -X POST https://api.example.com/artifact/model \
-H "Content-Type: application/json" \
-d '{"url": "https://huggingface.co/correct-model"}'
curl -X DELETE https://api.example.com/artifacts/dataset/test-dataset-1
curl -X DELETE https://api.example.com/artifacts/code/test-code-1
# Check if artifact has dependents
curl https://api.example.com/artifact/model/12345/lineage
# Look for edges where this artifact is the parent
# Should return 404
curl https://api.example.com/artifacts/model/12345
# Using AWS CLI
aws s3 rm s3://your-bucket/artifacts/model/12345.zip
#!/bin/bash
for id in 101 102 103 104; do
curl -X DELETE https://api.example.com/artifacts/model/$id
done
curl -X DELETE https://api.example.com/reset
/home/daytona/workspace/source/src/api/routers/models.py:1207:
@router.delete("/artifacts/{artifact_type}/{id}")
def artifact_delete(artifact_type: str, id: str):
logger.info("DELETE /artifacts/%s/%s", artifact_type, id)
# Attempt deletion from registry
ok = _registry.delete(id)
if not ok:
# Artifact not found
raise HTTPException(
status_code=404,
detail="Artifact does not exist."
)
logger.info(
"artifact_delete: deleted artifact_type=%s id=%s",
artifact_type,
id
)
return {"status": "deleted", "id": id}
delete() method removes the artifact from the in-memory model list but does not perform S3 cleanup.