delete all folders command line code example
Example 1: remove folder with content cmd
rmdir folder/path /S /Q
Example 2: create batch file to delete folders and subfolders
Echo batch file to delete folder
@RD /S /Q "D:\testfolder"
rmdir folder/path /S /Q
Echo batch file to delete folder
@RD /S /Q "D:\testfolder"