how delete files and folder on cmd code example
Example 1: create batch file to delete folders and subfolders
Echo batch file to delete folder
@RD /S /Q "D:\testfolder"
Example 2: how to delete dir in windows cmd
to remove an unempty file from cmd directory
$ rmdir /S nonemptyfile