How to remove files

I’ve some LDAP users which no longer have access to my nextcloud system. But they still exist in LDAP and occupy disk space. I.e. have entries in oc_filecache and I can see the files in my linux filesystem. How to cleanup and get rid of these files …

If you removed a user from LDAP (if Nextcloud can’t find him/her any more), you can use the occ command to remove them:
https://docs.nextcloud.com/server/11/admin_manual/configuration_server/occ_command.html?highlight=occ#ldap-commands

That’s the point. The user is still in LDAP. If you later specify a more restrict LDAP filter or there is a mismatch between LDAP filter and LDAP login filter - I really don’t understand why we have to setup a filter twice - then you have valid LDAP users which had access to the system in the past, now it’s forbidden but they still occupy data in the system …