Hi Nextcloud Support Team,
I’m reaching out to ask if there’s a way to automate the cleanup of temporary or cached files generated by the Nextcloud desktop client.
Our environment involves working with a large Nextcloud data repository (~10TB), and we’re testing the desktop client’s Virtual File System (VFS) functionality. We’ve noticed that when users open or edit files, cached copies remain locally after use. Over time, this consumes significant local disk space.
We’d like to know:
-
Is there a built-in method or configuration to automatically remove cached or temporary files after a defined period (e.g., 30 minutes or daily)?
-
If not, is there an API or scriptable method available to manage or trigger cache cleanup safely without disrupting the client’s sync status?
Our goal is to maintain optimal storage performance while still allowing users seamless access to cloud files without manually clearing cache folders.
FYI, we are using a self-hosted instance of Nextcloud, not the cloud-hosted service operated by your team. Our question pertains specifically to the Nextcloud Desktop Client and its behavior when connecting to a self-hosted environment.
Any guidance or best practices you can provide would be greatly appreciated.