How To Delete Files That Won’t Delete

delete files

So you can delete files from Windows no matter how hard they resist. There are several reasons why a file is reluctant to be sent to the Trash. We propose the solution to this problem to erase files in Windows without problems. Everything is fine in Windows until you run into a problem. In the case at hand, you send a file or document to the Trash. You instantly get a message stating that this is not possible, without telling you why.

delete files

Usually, this is so because that file is being used by an active process or application. That’s so technically, you’re not actually doing anything with it. But by retaining it, Windows prevents you from deleting it. Luckily there are several ways to solve this mess. In the past, I have recommended several free programs to make it possible. But you can also do it directly from the command line. Let’s see how.

Delete files on the command line

As we have seen in various articles, the command line is very practical if we know the proper commands. This time, we can delete files from there. Of course, you must open the command line in administrator mode.

So, we look for CMD in the Windows search engine. It will display the command line or command prompt. We right-click and click on Run as Administrator.

Once we have the command line open, we enter the command del / s / q “file”. Instead of “file”, we will indicate the path where the file is.

You can do it by hand, but the quickest way is to get the full path by asking the file. I wish dragging and dropping the file to the command line would do.

To obtain the file path, we press the SHIFT key and, without releasing it, we right-click on the file to delete. In the context menu we will see a new option: Copy as path.

Then we return to the command line or command prompt and after the del / s / q command, after space, we paste the path that we have copied. The path like “C: \ Users \ File to delete.doc” will appear automatically.

The del command is used to delete files, even forcibly. But if you want to do the same with folders, in that case, you should go to the rmdir command. That is, with rmdir / s / q “folder path” you can delete a rebel folder.

Another detail to take into account is that this method of deleting files in Windows implies deleting them permanently, that is, they will no longer be visible without going through the Trash. So if you are going to use that command, make sure you want to delete the said file before doing so.

Leave a Reply

Your email address will not be published. Required fields are marked *