delete_directory
Remove a directory from the filesystem, with options to delete recursively or only if empty. Supports both relative and absolute paths for precise file management.
Instructions
Removes a directory. Optionally removes recursively. Accepts relative or absolute paths.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
path | Yes | The path to the directory to delete. Can be relative or absolute. | |
recursive | No | If true, delete the directory and all its contents. If false, only delete if the directory is empty. |