Delete a file or folder
delete_pathDelete a file or folder, sending it to trash for restoration by default. Use recursive=true for non-empty folders and permanent=true for irreversible removal.
Instructions
Deletes a file or folder. By default the item goes to the trash (/app/.mcp/trash) and can be restored via restore_path or undo_last_change. A non-empty folder can only be deleted with recursive=true. The root folder cannot be deleted.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "delete_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File or folder path | |
| permanent | No | Delete permanently, without the trash (irreversible) | |
| recursive | No | Delete the folder with all its contents |