How Do I Delete a File That Won't Delete?by Stephen LilleyUpdated September 28, 2017
If a particular file that you're trying to delete won't remove itself from your computer's hard drive, this means the file is in use by some program on your machine. You can't delete a file if it is currently being accessed. Instead of going to the trouble of finding which open program or background process is using a particular file (it can be quite difficult to do so if it isn't immediately apparent to you), a simple alternative will work just as well.
Restart your computer. This will close down all of the programs and background processes that are currently running, which will free up the file for deletion.
Right-click on the file that you're trying to delete.
Right-click on the Recycle Bin icon on your Windows desktop.
Click "Empty Recycle Bin" to delete the file from your computer forever.