How to force delete file on windows – "Cannot delete file" error

Some times, Windows don’t allow you to Delete, Move or Rename a file because a program still accesses it or the file is used from a virus to infect your computer. In such cases, the error message that appears is similar to this: 

Error message when you try to delete file or folder:

"Cannot delete file: Access is denied 
Make sure the disk is not full or write-protected and that the file is not currently in use.
Cannot delete folder: It is being used by another person or program"

cannot delete file access denied

To be able to Delete, Move or Rename any locked file, try the following procedure:

Notice: Before deleting any file you must be sure that this file is not needed from Windows System or Installed Applications to run normally. (e.g. NEVER delete Windows System files)

How to unlock locked files.

Step 1: Restart your system.

First try to restart your system and then – without any programs open - try to Delete (Rename or Move) the locked file or folder.

If the problem still occurs when you try to Delete, Move or Rename a file (or folder) then continue to step 2.

Step 2: Use "Unlocker" to unlock locked files or folders.

1. Download and Install the latest Unlocker version from here:

download-unlocker

2. Press “Run” to start Unlocker setup wizard.

h0etsqzz

3. Press “Yes” at UAC prompt.

lacgjuzp

4. Select your preferred installation language and press “OK

z1zrfqnn

5. Press “Next” at welcome screen:

qfuzqtmv

6. Press “I Agree” at license Agreement.

2hz01ryv

7. At “Unlocker Setup” options click “Advanced” and deselectDelta Toolbar – Search” extras.*

Notice: Always pay attention when you install free software on your computer and never install any extra software included with it.

xpx2nnjw

8. Specify the installation path, otherwise leave the default and click “Next”.

4svwqbxv

9. At choose components options, click “Install” to start installation.

wovuozpc

10. Finally click “Finish” to close the Unlocker setup wizard.

qt3n2zba

Step 3: Unlock files or folders using Unlocker

How to unlock files or folders using Unlocker:

1. Navigate to the locked file or folder and:

a. Press your mouse’s Right click.

b. From the floating menu, choose “Unlocker

unlock-file

2. Choose from the left drop down menu the Unlocker action to be performed e.g. “Delete” and then click “Unlock” to unlock the locked file (or folder) or press “Kill Process” button to end the process accessing the locked file.

unlock-file-folder-with-unlocker

3. After that choose “OK”, in success operation information box.

image

That’s it.

If this article was useful for you, please consider supporting us by making a donation. Even $1 can a make a huge difference for us in our effort to continue fighting spam while keeping this site free: