Delete Evaluation
Delete evaluation (Kubernetes Job + repository entry + S3 storage).
Deletes the evaluation from:
- Kubernetes Job (via domain)
- Repository entry (via domain)
- S3 storage (request, results, report files)
Args: evaluation_id: UUID of the evaluation claims: JWT claims with user and team info diamond_domain: Diamond domain orchestrator storage: Evaluation storage adapter
Returns: Status dict with “deleted” status
Raises: HTTPException: 404 if evaluation not found
DELETE
Delete Evaluation
Last modified on April 21, 2026
Previous
Cancel EvaluationCancel a running evaluation (Kubernetes Job cancellation + workflow status update).
Cancels an evaluation that is in progress (CREATED, STARTING, or RUNNING status).
This will:
- Delete the Kubernetes Job (which cancels the running pod)
- Update workflow status to CANCELLED
- Optionally clean up partial S3 data (request file is kept for audit)
Args:
evaluation_id: UUID of the evaluation to cancel
claims: JWT claims with user and team info
diamond_domain: Diamond domain orchestrator
storage: Evaluation storage adapter
Returns:
Status dict with "cancelled" status
Raises:
HTTPException: 404 if evaluation not found, 400 if evaluation is already completed/cancelled
Next
Delete Evaluation