delete_files
Delete exact file and folder paths, recursively by default; items go to the recycle bin when available, otherwise deletion is permanent.
Instructions
Delete files or folders. A folder is deleted with everything in it (recursive, default true). On a share with a recycle bin, deleted items go to the bin: list_recycle_bin shows them and restore_from_recycle_bin brings them back. Without a bin, and for anything inside a bin (/<share>/#recycle), deletion is permanent. Paths are exact, not wildcard patterns, and if any path is missing nothing is deleted. A long delete keeps running on the NAS and returns a handle for file_task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | Exact paths of the files or folders to delete (`/video/Downloads/old.mkv`); wildcards aren't expanded. | |
| recursive | No | Delete a folder with everything in it (default true); with `false`, a folder that isn't empty is refused and kept. |