What should I do if the folder cannot be deleted?

  
                  

I have encountered this problem today, I have found some information on the Internet, I hope to be useful to friends who have encountered such problems!

First, the general solution

1. Cancel or restart your computer and try deleting again.

2. Go to "Safe Mode Delete".

3. Use the DEL, DELTREE, and RD commands to remove them from the pure DOS command line.


4. If there are more subdirectories or files in the folder that cannot be deleted, you can delete the subdirectories and files in the folder before deleting the folder.

5. If you uninstall a software in the "Add or Remove Programs" option, you will find that the installation directory of the software still exists. There are several files left in it. When you delete it directly, the system prompts that the file is being used and cannot be deleted.

At this point, you can first open the "command prompt" window, press "Ctrl+Alt+Del" to open the task manager, and close the "explorer.exe" process in the process (before this Close all the programs), switch to the command prompt window, use the DOS command to enter the folder that can not be deleted, enter the "Del folder name" to delete the folder. After the deletion is complete, select "File → New Task" in the Task Manager and enter "explorer.exe" to re-establish the shell of the system.

Second, advanced solutions

1. Disk Error
Run a disk scan and scan the partition where the file is located. Make sure that the repair file and bad sectors have been selected before scanning, scan all options, and delete the files after scanning. //This article comes from www.45it.com computer software and hardware application network

2. Read-ahead mechanism
Some videos, image files are interrupted or are being previewed and cannot be deleted. Enter: REGSVR32 /U SHMEDIA.DLL in the Run box to unregister the read-ahead feature. Or delete the [HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\CLSID\\{87D62D94-71B3-4b9a-9489-5FE6850DC73E}\\InProcServer32] key in the registry. Then you can delete the file.

3. Firewall
Because the anti-virus software will also cause the file to be used when performing the deletion, you can try to stop or close it and delete it.

4. Office, WPS series software
Office, WPS illegal shutdown will also cause the file can not be deleted or renamed. Rerun the program, then close normally, and then delete the file.

5. Right-click on the folder you want to delete with WinRAR
and select "Add to Compressed File". In the pop-up dialog box, select "Delete the source file after compression," just write a compressed package name, click the "OK" button.

6. Permission issues
If it is a Windows 2000/XP/2003 system, please first determine if you have permission to delete this file or folder.

7. Executable file deletion
When the image of the execution file or the DLL dynamic link library called by the program is not released in the memory, the file will be used when deleting. The solution is to delete the system page file under DOS ( Win98 is Win386.SWP, Win2000/XP is pagefile.sys).

8. Using other software methods, I recommend to you:

a, use Unlocker (the best stubborn software removal tool), Unlocker is a free right-click expansion tool, user After installation, it can be integrated into the operation of the right mouse button. When the user finds that a file or directory cannot be deleted, just press "Unlocker" in the right mouse button, then the program will immediately show which The program occupies the directory or file, and then you can unpack your file by pressing "Unlock" in the pop-up window.

Unlocker differs from other unlocking software in that it does not force the closing of files that occupy files, but rather unlocks files and programs, so it does not force shutdown like other unlockers. The program caused the user's possible data loss.

b, Killbox
only 416K, after downloading, you can delete the file directly after finding the path

9. The ultimate method--formatting!

Copyright © Windows knowledge All Rights Reserved