To get around this, we need to make sure any other process is not using the file and that you have permission to delete it.
Method 1: Delete file in safe mode
- For Windows 7: Restart your computer and keep pressing F8 until you see Advanced Boot Menu. If you don’t see this menu, start over again and keep pressing the F8 key on your keyboard until you see this. When you see this, select Safe Mode with Networking. You should be able to sign in to safe mode. On the Advanced Boot Menu, select Safe Mode with Networking using the arrow keys on your keyboard. Press Enter to start the computer in Safe Mode with Networking. The figure below shows only Safe Mode, but you need to select “Safe Mode with Networking”.
- For Windows 8/10, follow this link: Start Safe Mode in Windows 10/8
- Once your system has successfully booted up in Safe Mode, select the file you want to delete and do so. After the files have been deleted, reboot the PC back to normal mode.
Method 2: Internet settings to delete temporary files
- Start the computer in safe mode by following the steps provided in Method 1.
- When starting up, hold Windows key + R.
- Type down inetcpl. cpl and click OK.
- Select the Advanced tab and click Reset
- Check the Delete Personal Settings box (this will delete any toolbars, username or passwords, search providers, and others) and click Reset.
- After the reset, you will be able to delete the files.