Error when deleting file or folder

Can you help? I am trying to delete folder but I am getting an error. Any suggestion where to start?

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.

1 Like

Perfect! Thank you very much! That fixed the issue.

Glad to hear :slight_smile:

I was also getting the same issue of not being able to delete the folder, The HTTP error was also on my project site Apple iPad Support, and after getting the solution from here, I have resolved the issue.

Since I am encountering this error just now, I am offering my comments, despite the time lapse.

The suggested procedure may resolve the problem, but the answers in this discussion open as many questions as they resolve.

Why does this error occur originally, and how might it be prevented? Why can it not be resolved in some straightforward manner, rather than requiring disruptive, and somewhat arduous, administrative intervention?

Does this set of circumstances reflect a bug or design flaw, and if so, has it been reported?


I am getting this and I followed the instructions of checking the CRON and removing file locks… no luck. I had to do the… not recommended way of disablign file locks altogether.

Not work. Please just make a button DELETE work correctly.

1 Like

hi, the original post is old, but I think it’s better that I don’t start a new post since the issue is exactly the same.

as many have reported, why does this happens ? the solution may work (i will try later), but does someone knows why some files are locked ? In my case, those are files automatically downloaded from the android app, from an automatic backup of signal messenger app. All other files automatically downloaded from the android app are doing just fine, they can be deleted easily, but not these ones. Why is that ?

As I understand, the locked files occurs to prevent peoples to modify a file at the same time, but that’s not the case here.

Maybe this is helpful for someone in 2022. I was getting the same error and finally I was able to find that the problem came from rsyncing some files into the nextcloud folder of my user. I chowned all files in the data folder to www-data and then I was able to delete again without making changes in the configuration file:

chown -R www-data nextcloud

Where nextcloud is my data folder mounted from docker.

Perfect! Thank you very much!