how to delete folder and subfolders in cmd 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"