PC

Delete undeletable files or malware infected Files easily

Did you ever run into a situation where you wanted to delete a file, but Windows simply wouldn’t allow you to do it? Personally, these things happen to me all the time, especially when I’m at a client’s house trying to get their machine clean of malware. Have you ever tried deleting a locked file using common windows commands? If so, then you’ll notice that this is just not at all possible.

The main reason behind this is that the explorer.exe process locks files that are in use, effectively preventing you from deleting them. Usually, these files should not be touched, but sometimes, situations arise when you really need to erase some troublesome ones. some of the file may contain viruses and malware.

delete undeletable files or malware infected Files

This situation sometimes arises when you have inserted some virus affected pen drive to your system so, in order to erase them, you need to learn some basic tricks that I will show you through this tutorial.

The few easy solutions to delete those files are discussed below.

Also read: Symptoms for Recognizing virus & spyware attacks on your PC

Solution 1: Kill explorer.exe

  1. Open a command prompt.
  2. Navigate to the location where the locked file actually is.
  3. Press CTRL+ALT+DEL, click on “task manager”, select the Processes tab.
  4. Kill the explorer.exe process via the “End Process” button.
  5. Go back to the command prompt and delete the file
  6. To delete the file using command prompt, Type “del ” without the quotes.
  7. And then type in the name of the file with the extension, if you are currently in the directory where the file is located, you should be good to go.
  8. For example, if you wanted to delete “file.txt”, you would type “del file.txt“. If this file was located on the desktop and you were one directory above, you could type “C://Usersusername/Desktopfile.txt“.
  9. Bring up the task manager windows again
  10. Select File->new task
  11. Type explorer.exe in the “create new task” field
  12. Press OK.
    delete undeletable files or malware infected Files
    Task manager end task

Solution 2: Use The Windows Recovery Console

Just stick your Windows CD in your CD tray, boot on it, and at the “Welcome to Setup” screen, press “R”. Once the recovery console has started, navigate to the location of your locked file, and delete it. Since WRC does not really start the system, the files will not be in use, and you will be able to delete them. Oh, and for all you Linux geeks out there, yes, we know, doing this via a Linux live CD / USB key is also possible.

Also read: Choose a good Antivirus, which best suites your PC

Solution 3: Use Unlocker

Unlocker is a very useful freeware that will allow you to unlock any files that are currently in use by Windows. You’ll know if this is happening if you are getting any of these messages when trying to delete a file:

  1. Cannot delete file: Access is denied
  2. There has been a sharing violation
  3. The source or destination file may be in use
  4. The file is in use by another program or user
  5. Make sure the disk is not full or write-protected and that the file is not currently in use
    delete undeletable files or malware infected Files
    Unlocker for unlocking files

    Unlocker will make things right again for you. you can download unlocker for free, Click here

    You’ll notice that right after installing the software, a new option named unlocker” will appear when right clicking any files or folders in Windows Explorer.

    To unlock a locked file, just right click it, select unlocker, and the unlocker software will start. Then, click “unlock all” and close the software. Now that your file is unlocked, just delete it in Windows Explorer, as you always do. This is much simpler than solution 1 or 2, isn’t it?

    Conclusion

    I hope these three solutions will help you get rid of those hard to delete files!

    Thank you for reading this post, Like us on FB.

    Leave a Reply