# File is locked - how to unlock

**URL:** <https://help.nextcloud.com/t/file-is-locked-how-to-unlock/1883>\
**Category:** 📑 How to\
**Tags:** database\
**Created:** [July 24, 2016, 8:56am UTC](https://help.nextcloud.com/t/file-is-locked-how-to-unlock/1883 "2016-07-24T08:56:50Z")\
**Posts on this page:** 1\
**Showing post:** 67

<div class="post-metadata">

**Author:** ![rhua](https://help.nextcloud.com/letter_avatar/rhua/32/5_5575768a8748004e209b776fc1b2916d.png) [@rhua](https://help.nextcloud.com/u/rhua)\
**Post date:** [November 22, 2020, 3:02am UTC](https://help.nextcloud.com/t/file-is-locked-how-to-unlock/1883/67 "2020-11-22T03:02:52Z")

</div>

> [@Nextcloud 19.0.1 Problem with deleting files/folders](https://help.nextcloud.com/t/nextcloud-19-0-1-problem-with-deleting-files-folders/89041/5):
>
> I first tried following the next instruction: Which at step one resulted in mayor errors and the process being killed: Starting scan for user 1 out of 3 (Some\_user\_without\_groupfolder\_access) Starting scan for user 2 out of 3 (Some\_user\_with\_Groupfolder\_access) Exception during scan: An exception occurred while executing 'SELECT `fileid` FROM `oc_filecache` WHERE (`storage` = ?) AND (`path_hash` = ?)' with params [1, "1e6013faa7e8570d55f5164261dc1b4d"]: SQLSTATE[HY000]: General error: 2…

---

_[View the full topic](https://help.nextcloud.com/t/file-is-locked-how-to-unlock/1883)._
