How to clean up NextCloud stale locked files · the.Zedt
zedt.eu › tech › linuxMar 31, 2020 · Now proceed to clean up the oc_file_locks table in the database of any records of locked files with: mysql -u <mysql_user> -p -D <nc_database_name> -e "DELETE FROM oc_file_locks WHERE 1". Ensure that the correct MySQL username/password combination and database name are entered and that the necessary permissions are met.