rmdir
Remove empty directories safely with dry-run preview. Returns JSON of removed paths. Fails on non-empty directories to prevent accidental data loss.
Instructions
Remove empty directories with dry-run support. Destructive: deletes directories. Fails safely on non-empty directories (use 'rm --recursive' for those). Use --dry_run to preview. Returns JSON with the removed directory paths. Use to clean up empty directory trees. Not for removing directories with contents — use 'rm --recursive'. Not for file removal — use 'unlink' or 'rm'. See also 'rm', 'unlink'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | Empty directories to remove. | |
| dry_run | No | Report operations without changing files. |