Over the last several months I have made repeated attempts to delete a large video file taking up space on my drive. Each time it has insisted that the file is in use and therefore cannot be deleted. However, not only am I not using the file, I have actually never used it at all. Is there any way to overrule this?
-
Try an absolute delete - hold down the shift key when you press delete to delete the file.
-
If that doesn’t work, reboot your computer into safe mode. That should let you delete the file.
If it is a large video file you dowloaded via a torrent client, such as Bit Comet, you must remove/delete the task from there before you can delete it.
Here’s an easy fix without having to download anything.
Open up Notepad
File->Save As
For “Save as type” change it to “All Files”
Now navigate to the file you can’t delete. Click on it and overwrite it as a blank Notepad document.
Exit Notepad.
You should now be able to delete the file.
I clicked on this link explicitly to suggest this. I should have known someone would beat me to it.
It’s a great program.
That’s not an absolute delete, that’s just telling Windows not to move it to the Recycle Bin. There is no difference with regard to file attributes.
ChadVader, I just tried your solution with a small WIN32 console program that opens a file and holds it open until it’s exited. Notepad refused to over-write the file, complaining that it was already in use.
Me too.
That program worked like a charm. Thanks!
What causes files to get like this?
I’m sure that there are a variety of reasons but my experience has been that a service is using the file in some way. It’s not an “application” as such. Closing or restarting the service in question is how I generally work around it.
For large files I usually suspect the anti-virus locking up after opening the file for scanning.
I’ve found that sometimes that over-rides file locking on corrupted files. I don’t know the technical name for it - I’ve just always called it “absolute delete”.
Just trying to help with the obscure solutions, dude.