How to get rid of a file that won’t delete because it’s open in windows explorer. The easy way.
<p>It’s often really annoying when we have to delete a file but it won’t delete because it’s open in windows explorer and no matter how many times you hit “try again” it won’t just delete. How do we go around this? Easy actually. We use our good ol’ command prompt.</p>
<p><strong>Here are the steps:</strong></p>
<ul>
<li>copy the path to the file you’re trying to delete</li>
<li>run task manager and end explorer: To run task manager, right click on your taskbar and click on “task manager”. In task manager, look for “explorer”, right click on it and click on “end task”. Your taskbar should disappear at this point, don’t panic.</li>
<li>run command prompt as administrator (this helps if you’re trying to delete something from program files): On your keyboard, press <strong>windows key + R </strong>to open the run dialogue box. Type in cmd, then press <strong>ctrl+shift+enter</strong> to run it as administrator. A popup will show, just press yes.</li>
</ul>
<p><a href="https://medium.com/@dskbagain/how-to-get-rid-of-a-file-that-wont-delete-because-it-s-open-in-windows-explorer-the-easy-way-06cb02f7b659"><strong>Website</strong></a></p>