# Delete upload

Tool: `veryfront__delete_upload`

Soft-delete an upload so it no longer lists or downloads. Requires project.uploads.write; API keys also need delete scope.

## Arguments

| Name                | Type    | Required | Description                                                                                                                                                                                    |
| ------------------- | ------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `upload_reference`  | string  |          | Upload path to soft-delete. Requires upload write and path edit access; API keys also need delete scope. Restoration requires the deleted record to exist; no deletion-age cutoff is enforced. |
| `file_path`         | string  |          | Send upload\_reference or this earlier spelling of it, not two different values.                                                                                                               |
| `confirm`           | boolean | Yes      | Must be true to confirm deletion                                                                                                                                                               |
| `project_reference` | string  |          | Project ID or slug                                                                                                                                                                             |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__delete_upload",
    "arguments": {
      "confirm": false
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"ok\":true}"
      }
    ],
    "structuredContent": {
      "ok": true
    }
  }
}
```
