delete_path
Delete a file or directory at the specified path. Use recursive mode to remove non-empty folders and their contents entirely.
Instructions
Delete a file or directory. For directories, supports recursive deletion. Use with caution as this operation is irreversible.
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 | Full path of the file or directory to delete. Example: D:\temp\file.txt or D:\temp\old_folder | |
| recursive | No | Required when deleting a non-empty directory. Set to true to delete directory and all its contents recursively. |