Most users at least once faced with the fact that they could not understand how to delete a folder that is not deleted. Common situation? I think very much so. Honestly, when I personally first encountered such a problem, 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 is used by the application and the process. There may also be other messages - the essence of the problem does not change from this.
Do you even understand why this situation turns out? And everything is very simple. It is currently being used by some kind of program. True, it may be that it is already closed, but the system “thinks” that some software still uses it. Finding yourself a reason that does not allow you to do what is necessary will be quite difficult.
Then how to delete a folder that is not deleted, you ask. Now you will find out about it. True, I will tell you a method that works only on Microsoft systems. Deleting the Linux folder this way will not work.
So, first make sure that if you delete this directory, it will not result in anything deplorable 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 convinced 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 is not deleted.
The principle of its work is that it unlocks the folder or file that is currently used by the application, process or service - this allows it to perform any action that the user needs, including deleting. As you can see, this program is simply irreplaceable, therefore it must be present in every computer. But again, in the Ubuntu lines, deleting a folder with its help will not work.
Once you download and install it, you will need to restart your PC. Next, after the operating system has finished loading, go to the directory in which the problem folder or file is located. Select the desired object and right-click on your manipulator to call the context menu. When it pops up, you will see in its composition an icon with the icon of the installed program. Here we click on it with the left button.
At the top of the window will be a list of what does not allow you to perform the deletion. Your task now is to unlock it. Highlight everything in the list and click on the button called “unlock all”. Now you can delete the required object in the standard way through the operating system. If it still doesn’t work out for you, run Unlocker again and select the delete action. It may be that at the moment even this software will not be able to do this. In this case, you will be prompted to do this the next time you start automatically. Agree by clicking the "OK" button. That’s all for me. Now you know how to delete a folder that is not deleted.