# Error when deleting file or folder

**URL:** <https://help.nextcloud.com/t/error-when-deleting-file-or-folder/34948>\
**Category:** 🏷️ General\
**Created:** [August 9, 2018, 4:58pm UTC](https://help.nextcloud.com/t/error-when-deleting-file-or-folder/34948 "2018-08-09T16:58:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![webunraveling](https://help.nextcloud.com/user_avatar/help.nextcloud.com/webunraveling/32/1134_2.png) [@webunraveling](https://help.nextcloud.com/u/webunraveling)\
**Post date:** [August 9, 2018, 5:07pm UTC](https://help.nextcloud.com/t/error-when-deleting-file-or-folder/34948/2 "2018-08-09T17:07:34Z")

</div>

If I remember right, that error is caused by a locked file. Take a look at the following URL, under " **Manually disable locking state**". If there are many users on your instance of NextCloud, I would suggest putting NextCloud into maintenance mode, also mentioned at the following URL.

> [@File is locked - how to unlock](https://help.nextcloud.com/t/file-is-locked-how-to-unlock/1883?source_topic_id=608):
>
> You can’t access files because they are locked and you find such errors in your logfile: {"reqId":"0DijSqEkfOg2iyh9VD8J","remoteAddr":"xx.xx.xx.xx","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 423 \\\"path\\\/file.extension\\\" is locked\",\"Exception\":\"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Exception\\\\FileLocked\",\"Code\":0,\"Trace\":\"#0 Manually disable locking state: put Nextcloud in maintenance mode: edit config/config.php and change this line: 'maintenance' =\> tr…

---

_[View the full topic](https://help.nextcloud.com/t/error-when-deleting-file-or-folder/34948)._
