How to Force Delete a File or Folder in Windows 11

It is normal for us to delete a file by right-clicking on it and selecting the Delete option. But sometimes the file is not deleted for some reason of permissions or configuration and in this case, it is useful to resort to the command prompt to force the deletion of these files in complete safety. So, here we will discuss how you can force delete a file or folder in Windows 11.

Force Delete a File or Folder in Windows 11

Why should you delete files/folders from your PC?

The amount of information that we are storing on our computers is quite large since the functions and tasks that we carry out with it are more and more numerous. We use these devices for many things such as the creation and management of documents, the search for information through the web, the review of our email or the download of different documentation. That is why much of this information is being stored on our PC in the form of files or folders.

The storage of our PC is one of the elements that in many cases we do not manage until we are in a key moment of space. The more we save without control, the more problems we can have in the performance of the team. That is why it is advisable to delete files and folders from Windows 11 when we do not use them or they do not serve us. But everything changes if we find that we cannot delete a file or folder in Windows 11 and We need to force delete files to get it.

Every day we create new files and folders in Windows due to our responsibilities and it is useful to keep a much more correct order of the elements to use. It is normal, everything that happens to us, that we fill up with hundreds of files or folders that are no longer necessary and this incurs in having a set of elements that take up space unnecessarily and that can become clutter.

Ways to Force Delete a File or Folder That Cannot Be Deleted Windows 11

Method 1: Via WinRAR

Step 1: The first thing will be to have the WinRAR program installed. If you don’t have it, you can officially download it online.

Step 2: Once we have it installed, we will go to the folder or file that does not allow us to delete. We right-click on it and choose “Add to archive”.

Step 3: Inside here we will have to choose and mark the option “Delete files after archiving”. Then click “OK” to start the process.

Step 4: The compression process will take time depending on the size of the folder.

Step 5: The compressed file will have been created and the folder or file that Windows 11 cannot be removed will have been deleted. Then delete the compressed file and it will be ready.

Method 2: Via CMD

  • To delete a file in Windows 11 we must access the command prompt as administrators and, once there, we can execute the following syntax:

DEL /F /Q /A “File path”

Example: DEL /F /Q /A “C:\Users\Peter\Desktop\5G.txt”

The parameters to use are:

/F   -Force delete the file.

/Q  -Ensures forced deletion of read-only files.

/A   -Select only files with the attribute ready for your archive.

  • From the same command prompt, as administrators, it will be possible to force the deletion of a folder on the system. For this we must execute the following syntax:

RD /S /Q “Folder path”

Example: RD /S /Q “C:\Users\Peter\Desktop\Folder”

In this case, the parameters are:

RD  -Run the Remove Directory command.

/S  -Delete subfolders and files.

/Q  -Remove all directories without user confirmation.

Leave a Reply