In some cases, when working with files and folders, hard disk or operating system failures occur, in which it becomes impossible to delete any directory. Such cases occur in all versions of operating systems of the Windows family, but this problem is most pronounced in Windows Vista.
It is necessary
operating system Windows Vista
Instructions
Step 1
The file system of the hard disk is designed in such a way that if file elements (bytes and bits) are incorrectly transferred across sectors, a failure occurs. This failure can be expressed in the impossibility of moving or deleting some directories that were on the bad sector, while a window appears on the screen with the words "Unable to delete file (folder)".
Step 2
With a detailed analysis of the current situation, you can find out the reason why it is impossible to do something with the folder. Often the reason is the presence of hidden or system files. In this case, it is enough to call the "Folder Options" applet (Folder Settings). Open any "Explorer" window, click the top menu "Tools" and select "Folder Options". Also, this window can be called in another way, by right-clicking on an empty space of an open folder and selecting the "Folder settings" item.
Step 3
In the window that opens, go to the "View" tab and check the box next to the item "Show hidden and system files". Then click the "OK" button. Navigate to the folder that you cannot delete and view its contents. If it contains hidden files, you can delete them. Now try deleting the folder itself.
Step 4
Most likely, the folder cannot be deleted. The main reason for blocking files in Windows Vista is when a directory is occupied by a program. In this case, it is enough to close all applications that may have been using it and try to uninstall it again.
Step 5
If this does not help, try restarting your computer, in which case all programs will automatically free the files and folders that they were using.
Step 6
In some cases, all of the tips described above have no practical conclusion. In this case, the developers have come up with a rescue bootable Windows Vista Live CD. With it, you can boot the operating system directly from a floppy media and perform any actions with the hard disk.