How to clean up NextCloud stale locked files · the.Zedt
zedt.eu › tech › linuxMar 31, 2020 · sudo -u USERNAME php occ files:scan --all sudo -u USERNAME php occ files:cleanup Finish things off by waiting for the client(s) to sync and then checking if the previously locked files are in order (and restore them from the backup if needed). PS: Replace USERNAME with the correct username that the NextCloud instance runs under.