# veryfront__delete_file

Delete a file. Requires project.files.write; API keys also need delete scope.

Risk: mutating.

## Arguments

| Name                  | Type    | Required | Description                                                                                                                                                      |
| --------------------- | ------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference`   | string  |          | Project ID or slug                                                                                                                                               |
| `ref`                 | string  |          | Content selector: main or branch:<name-or-id>. Omit for main. Release and environment snapshots are read-only. Supplied aliases must name the same content.      |
| `branch_id`           | string  |          | Legacy branch name or ID alias for ref=branch:<value>. Omit for main.                                                                                            |
| `expected_version_id` | string  |          | Expected current source file version ID. Omission disables this guard; a stale version returns a concurrency conflict.                                           |
| `file_path`           | string  |          | Path of the file. Send file\_path or path, not two different values.                                                                                             |
| `path`                | string  |          | File path whose deletion appends a deletion version in main or the selected branch; immutable history remains. URL-encode this path when supplied in a REST URL. |
| `confirm`             | boolean | Yes      | Must be true to confirm deletion                                                                                                                                 |

## Call it

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