This workflow will allow you to provide a list of folders and subfolders with a number of users and delete only the folders and subfolders that contain 0 users. However, in case a folder has 0 users, it will also check if all subfolders also have 0 users.
For example if a subfolder /marketing contains 0 users but in marketing/internal there are users, it will not delete the /marketing folder. You can change the table reader to another file reader, but the format has to be similar.
To use this workflow in KNIME, download it from the below URL and open it in KNIME:
Download WorkflowDeploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.