# veryfront__delete_external_file

Delete external file. Requires project.integrations.connect; API keys also need delete scope.

Risk: mutating.

## Arguments

| Name                | Type    | Required | Description                                                                                                                                                                    |
| ------------------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project_reference` | string  |          | Project ID or slug. Requires project.integrations.connect through the caller's own personal provider connection.                                                               |
| `provider`          | string  | Yes      | Storage provider accessed through the caller's own personal connection. A shared project connection is not used.                                                               |
| `file_id`           | string  | Yes      | File or folder ID from list\_external\_files. OneDrive and SharePoint move the item to the recycle bin (status trashed); Google Drive permanently deletes it (status deleted). |
| `confirm`           | boolean | Yes      | Must be true: this call replaces or deletes provider data. false refuses the call.                                                                                             |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__delete_external_file",
    "arguments": {
      "provider": "<provider>",
      "file_id": "<file_id>",
      "confirm": "<confirm>"
    }
  }
}
```
