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
- 204
- 401
- 404
- 410
- 422
The artifact was deleted. No response body.
Authentication required
The response does not belong to this agent, or no artifact with this id exists on the response.
The response is unknown / expired, or its backing job no longer exists.
Validation failed