Rize S. answered 03/23/23
Senior IT Certified Trainer, IT Developer & DBA Administrator
To delete a folder in the DOS console without listing all the contents that will be deleted, you can use the rd command with the /q switch. The /q switch stands for quiet and will prevent a list of deleted files and folders from being displayed.
Here's the syntax:
rd /s /q foldername
The /s switch is used to delete the specified folder and all its subfolders and files.
Replace "foldername" with the name of the folder you want to delete. For example, to delete a folder named "test", you would use:
rd /s /q test
Note: Be careful when using the rd command as it will permanently delete the specified folder and its contents without prompting for confirmation. Make sure you have the correct folder name and are certain you want to delete it before using this command.