delete_path
Delete a file or directory at the specified path. Use recursive mode to remove non-empty folders and their contents entirely.
Instructions
Delete a file or directory. For directories, supports recursive deletion. Use with caution as this operation is irreversible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full path of the file or directory to delete. Example: D:\temp\file.txt or D:\temp\old_folder | |
| recursive | No | Required when deleting a non-empty directory. Set to true to delete directory and all its contents recursively. |