Delete any file

Warning-This method can corrupt our Windows OS if adopted for system file.First you need to take ownership of the file. In command prompt type the following

The file "wmploc.dll" has been taken for example

takeown /f C:\Windows\System32\wmploc.dll

This command will effectively give you ownership of the file.

At this point you still have no rights to delete it. Now you need to run the "cacls" command to give yourself full control rights to the file:

cacls C:\Windows\System32\wmploc.dll /G eches:F

Note: Be sure to replace username "eches" with your username.

After confirming the changes by typing in "y" for yes and hitting enter button, you should be able to delete the file.