Delete a Folder via Command Line Interface

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.