First, General workaround:
1. Remove or reboot the computer, and then try to delete it.
2. Enter Safe Mode removal.
3. Use the Del,deltree and RD commands on the Pure DOS command line to remove it.
4. If you have more subdirectories or files in a folder that cannot be deleted, you can delete the subdirectories and files in the folder, and then delete the folders.
5. End the Explorer.exe process in Task Manager, and then delete the file at the Command Prompt window.
Second, advanced solution:
1. Disk error
runs a disk scan and scans the partition where the file is located, determines the selected repair files and bad sectors before scanning, scans all options thoroughly, and then deletes the files after scanning.
2. Pre-read mechanism:
Some media playback is interrupted or is being previewed, causing an inability to delete. In the Run box, enter: regsvr32/u Shmedia. DLL to log out of the read-only function. or delete the following key value in the registry: [Hkey_local_machinesoftwareclasses Clsid{87d62d94-71b3-4b9a-9489-5fe6850dc73e}inprocserver32].
3. Firewall:
Because anti-virus software consumes the files that are being checked while it is being searched, causing the prompt file to be used when the deletion is being performed, it may be possible to try to temporarily turn off its immediate monitoring program.
4. Office, WPS series Software:
Illegal shutdown of office can also cause files to be deleted or renamed. Rerun the program, then shut down normally, and then delete the file.
5. With WinRAR:
Right-click the folder you want to delete and select Add to compressed file. In the pop-up dialog box, select the "compressed delete source file," Write a compressed package name, point to determine.
6. Permissions problem:
If you are a 2000 and XP system, first determine whether you have permission to delete this file or folder.
7. Removal of an executable file:
If the executable's image or the DLL that the program calls is not released in memory, the file is prompted to be in use when deleted, and the solution is to delete the system's paging file, Win98 is Win386.swp,win2000/ XP is Pagefile.sys. Note that you want to remove it in DOS.
8. File Shredding method:
Use a file grinder, such as the files Pulverizer, to completely remove some stubborn files