Solving development problems  |  About this blog

How to delete all files and subdirectories recursively from one directory using DOS command?

Use DOS command to delete all files and subdirectories from specific folder (directory) – you must not be in this folder when executing this command:

rmdir /s /q "c:\Temp\Your-Dir-With-Subdirs"
Create this directory (folder) again because it will also be deleted
md "c:\Temp\Your-Dir-With-Subdirs"
blog comments powered by Disqus