How to Force Delete a Folder on Windows 10 and 11 Using Command Prompt

Configurare noua (How To)

Situatie

One quick way to force delete a folder is to use Command Prompt. You can run a command from this tool that deletes your selected folder.

Solutie

Pasi de urmat

To do that, first, open your “Start” menu and search for “Command Prompt”.

  • Then, on the right pane, click “Run as Administrator.”
  • You’ll see a “User Account Control” prompt. Select “Yes.”

When Command Prompt opens, type the following command and press Enter. In this command, replace PATH with the path to the folder you want to delete:   rmdir /s /q PATH

For example, to delete a folder named Unwanted in the Documents folder on your C drive, you’d use the following command:  rmdir /s /q C:\Documents\Unwanted

Tip solutie

Permanent

Voteaza

(4 din 5 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?