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.
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. |