Delete file or folder
delete_pathPermanently delete a file, symbolic link, or folder from local or remote backends. Use recursive=true to remove non-empty folders; deletion is irreversible and bypasses trash.
Instructions
Permanently delete a file, symbolic link or folder. Use when: something must go for good. Instead: move_path to move it aside. Behavior: destructive, irreversible (no trash). A repeat fails with 'No such file'. A non-empty folder needs recursive=true; a failure half-way leaves the rest. A symlink is removed, not its target. Time limit: 30 s. Returns: {ok: true}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "delete_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The file, link or folder to delete (absolute, or relative to the MCP root). Required unless path_b64 is given. | |
| backend | No | Backend id from list_backends; omit for the default. | |
| path_b64 | No | path as base64 of its raw bytes, for non-UTF-8 names; replaces path. | |
| recursive | No | true: also delete everything inside a folder. false: a non-empty folder fails. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes |