Automate Deletion of Folders using systemd

For first post, please answer the questions below!

Describe your issue in detail

Hello there, I am using the Pydio Cells Home. I have an automated backup system that backs up the Cells Data directory and Database. But I want to create a system daemon service that automatically deletes some old files from a specific Folder created by the Administrator user and shared with multiple users. I have no clue how to do this. I know there is a feature in the enterprise version. Can someone please suggest to me on how to achieve that? Thanks.

What version of Cells are you using?

4.4.15

What is the server OS? Database name/version? Browser name or mobile device description (if issue appears client-side)?

Fedora WSL2 on Windows Server 2025

MariaDB Ver 15.1

What steps have you taken to resolve this issue already?

Checked on the documentation, but found it for the Enterprise version.

Hey @Amanuel_Elhanan if you don’t want to stick to home version, the clean way to do would be to use the API’s (with one of our provided SDKs?) and write a script that list the files inside the folder you are interested in, check their modification time, and remove them on demand.

-c

1 Like

That would be great, but for now, I can’t afford to subscribe to the Enterprise since we are using Pydio Cells for a small group. I would appreciate it if there is an option for the home version, like accessing the folders from /var/cells and deleting them and resyncing the filesystem.

certainly not! you should never touch the underlying data.

Ok better option maybe : mount the workspace as webDAV folder and perform the clean on the mounted volume

1 Like

Ok, thank you. I will try that.

I’ve tried using the go sdk and I can find files using cli.AdminTreeService.ListAdminTree() function but to delete them I have to use treeSvc.DeleteNodes func which is relative to the connected session i.e path “personal/user/testfolder/test1.txt” maps to “personal-files/testfolder/test1.txt”. I didn’t see a way to manage files globally.

@charles Can you clarify how to delete files from an admin session?

1 Like