Cover Image

When you delete large files using the graphical interface in windows, you would have noticed that it takes way too long. A trick to speed up the process is by using del and rmdir command from the command prompt, which recorded reduces the time to a fraction of the latter.

rmdir, to remove directories. del, to remove files.

DEL /F/Q/S *.* > NUL

/F -- forces the deletion of read-only files.

/Q -- enables quiet mode. You are not ask if it is ok to delete files (if you don't use this, you are asked for any file in the folder).

/S -- runs the command on all files in any folder under the selected structure.

*.* -- delete all files.

> NUL -- disables console output. This improves the process further, shaving off about one quarter of the processing time off of the console command.

RMDIR /Q/S foldername

/Q -- Quiet mode, won't prompt for confirmation to delete folders.

/S -- Run the operation on all folders of the selected path.

foldername -- The absolute path or relative folder name.