Skip to main content

Delete an agent-generated artifact

DELETE 

/agent/:id/responses/:response_id/artifacts/:artifact_id

Permanently deletes a generated artifact's bytes from object storage and removes its reference from the response, so a later GET on the same artifact returns 404 rather than a signed URL for missing bytes.

Requires a token with the job:write ability: the job:read that permits downloading an artifact is not sufficient to destroy it. Only the run's creator (or an admin) may call it.

Idempotent in effect — deleting an already-deleted artifact returns 404, and a retry after a partial failure is safe. Deletion is immediate and not recoverable; there is no soft-delete or restore.

Request​

Responses​

The artifact was deleted. No response body.