For whatever reason, Windows prevent some files from being deleted, moved or renamed. This locking up of files is incredibly frustrating, especially when you know the file is not, in fact, being used. Here is a great way to get around that issue.
TO DO: Press Windows logo key + X, and hit C to open the command prompt.
In the command window, type the "cd folder path" command and press Enter. Then type del/f filename to force delete the file that is in use.
Note: In the above command, "foldpath" is the location of file. "filename" is the name of the file or files, it must be replaced by the name of the file along with its extension that you want to delete. For example: del /f test.txt.

WARNING!! – A file deleted using the DEL command does not move it to the Recycle Bin but deletes it permanently. Use the DEL command with caution. If you want to permanent delete files without data recovery, FileZero is a good helper, it is easy-to-use
and securely wipe data.
