file locked owncloud code example
Example: remove locked file owncloud
1) put ownCloud in maintenance mode: edit config/config.php and change this line:
'maintenance' => true,
2) Empty table oc_file_locks: Use tools such as phpmyadmin or connect directly to your database and run:
DELETE FROM oc_file_locks WHERE 1
3) disable maintenance mode (undo first step).