delete a windows folder using commandline quickiest way to delete a large folder

Deleting a large folder using the Windows explorer could take very long time. The quicker way to delete a folder by using the Windows command line.

To do this;

Use rmdir /s /q foldername or del /f /s /q foldername

For example, if you want delete the folder c:\data\accounting\archive, do this:

1. Open Windows Command prompt (start->cmd)
2. Browse to the location of the folder: cd c:\data\accounting
3. Run the delete command: del /f /s /q archive

Publisher: abdirahman isse

Share this post