# Reject a staged file `DELETE /agent/review/{id}` **Required scope:** `documents:write` This DELETES the stored file and its record. It does not set a flag: immut keeping a document the customer declined is the problem this queue would otherwise create. ## Parameters | Name | In | Required | Description | |---|---|---|---| | `id` | path | yes | id of the target record | ## Responses | Status | Meaning | |---|---| | `200` | Success | | `400` | BadRequest | | `401` | Unauthorized | | `403` | Forbidden | | `429` | RateLimited | ## Example ```bash curl -X DELETE "https://backend.immut.io/api/v1/agent/review/" \ -H "Authorization: Bearer $IMMUT_API_KEY" ``` ## OpenAPI fragment ```json { "/agent/review/{id}": { "delete": { "operationId": "deleteagentreviewid", "summary": "Reject a staged file. This DELETES the stored file and its record. It does not set a flag: immut keeping a document the customer declined is the problem this queue would otherwise create.", "description": "Reject a staged file. This DELETES the stored file and its record. It does not set a flag: immut keeping a document the customer declined is the problem this queue would otherwise create.", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "id of the target record" } ], "responses": { "200": { "description": "Success" }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "429": { "$ref": "#/components/responses/RateLimited" } }, "tags": [ "Agent" ], "x-required-scope": "documents:write" } } } ```