delete_directory
Deletes a directory and optionally all its contents. For files or uncertain paths, use the 'delete' tool instead.
Instructions
Delete a directory and optionally all its contents. Only works on directories, not files. Use 'delete' tool if you're unsure whether the path is a file or directory. / 删除目录及其所有内容。仅用于删除目录,不能删除文件。如果不确定是文件还是目录,请使用 delete 工具。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path of the directory to delete. Must be a directory, not a file. | |
| recursive | No | Whether to recursively delete all subdirectories and files. Default is true. Set to false to only delete empty directories. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | ||
| success | Yes |