# Delete upload folder

Tool: `veryfront__delete_upload_folder`

Delete a folder's visibility settings and child folders and soft-delete every upload under its prefix. Requires project.uploads.write; API keys also need delete scope.

## Arguments

| Name                | Type                  | Required | Description                                                                                                                                  |
| ------------------- | --------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `folder_path`       | string · min length 1 |          | Folder prefix whose visibility settings and contained files are removed; files are soft-deleted. Requires upload write and path edit access. |
| `path`              | string · min length 1 |          | Another spelling of folder\_path. Send one of the two.                                                                                       |
| `confirm`           | boolean               | Yes      | Must be true to confirm folder deletion and soft deletion of contained files.                                                                |
| `project_reference` | string · min length 1 |          | 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_folder",
    "arguments": {
      "confirm": true
    }
  }
}'
```

## Example response

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