Most users at least once faced with the fact that they could not figure out how to delete a folder that is not deleted. Familiar situation? I think even very much. To be honest, when I personally encountered such a task for the first time, I could not immediately find a way to solve it. Every time I wanted to delete an unnecessary file, it was not deleted, and the system constantly wrote to me that the action could not be performed because the file was being used by this and that application or process. There may also be other messages - the essence of the problem does not change from this.

Do you even understand why this situation is happening? And everything is very simple. It is currently being used by some program. True, it may be that it is already closed, but the system “thinks” that some software is still using it. Finding yourself the reason that does not allow you to do what you need will be quite difficult.
Then how to delete a folder that is not deleted, you ask. Now you will know about it. True, I will tell you a way that worksonly on Microsoft systems. You won't be able to delete the Linux folder this way.
So, first make sure that if you delete this directory, it will not turn into anything bad for you or for the operating system. There are millions of such cases when a person deleted a folder - and because of this, they had to reinstall the system. When you are sure of this, you will need to download and install software called Unlocker. It is this small program that will solve the problem and give an answer to the question of how to delete a folder that cannot be deleted.

The way it works is that it unlocks a folder or file that is currently in use by an application, process or service - this way it allows you to perform any action that the user needs, including deleting it. As you can see, this program is simply indispensable, so it should be present in every computer. But again, in the Ubuntu rulers, it will not work to delete a folder using it.

Once you download and install it, you will need to restart your PC. Further, after the operating system has finished loading, go to the directory in which the problematic folder or file is located. Select the desired object and right-click your manipulator to call the context menu. When it pops up, you will see an icon with the icon of the installed program in its composition. Here we press the left button on it.
At the top of the window there will be a list of what does not allow you toperform the deletion. Now your task is to unlock it. Highlight everything that is in the list and click on the button called "unlock all". Now you can delete the necessary object in the standard way through the operating system. If even now you still can’t do it, run Unlocker again and select the delete action. It may be that at the moment even this software cannot do it. In such a case, you will be prompted to do this automatically the next time you start. Agree by clicking the "OK" button. That's all for me. Now you know how to delete a folder that is not deleted.