delete_directory
Delete a directory safely within allowed paths. Use preview to see what will be deleted or confirm recursive deletion for non-empty directories.
Instructions
Safely delete a directory with protection checks. Only works within allowed paths. Recursive deletion requires confirmRecursive=true. Use preview=true to see what will be deleted first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the directory to delete | |
| preview | No | Preview what will be deleted without actually deleting | |
| recursive | No | Delete directory and all its contents recursively (REQUIRES CONFIRMATION) | |
| confirmRecursive | No | Explicit confirmation required when recursive=true |