Delete a path
delete_pathDeletes a file, symlink, or directory after a dry-run inspection and explicit DELETE confirmation; refuses filesystem root / while respecting Termux Android permissions.
Instructions
Delete a file, symlink or directory. Destructive: first call with dry_run=true to inspect the target, then call again with confirm="DELETE". The filesystem root / is always refused; all other paths are allowed subject to the Termux user's Android permissions.
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 | Path to delete. | |
| confirm | No | Must be exactly "DELETE" for a real deletion. | |
| dry_run | No | Only report what would be deleted. Default false. | |
| recursive | No | Allow deleting a non-empty directory. Default false. |