operations_rmdirs
Delete empty subdirectories beneath a given remote path, with an option to preserve the root directory.
Instructions
Remove empty directories — Deletes empty subdirectories beneath the specified path, optionally leaving the root.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fs | No | Remote name or path to scan for empty directories. | |
| _async | No | Run the command asynchronously. Returns a job id immediately. | |
| _group | No | Assign the request to a custom stats group. | |
| remote | No | Path within `fs` whose empty subdirectories should be removed. | |
| leaveRoot | No | Set to true to preserve the top-level directory even if empty. |