command delete folder with content code example
Example 1: linux delete subfolders
rm -rf /config/filegroups/*/
Example 2: create batch file to delete folders and subfolders
Echo batch file to delete folder
@RD /S /Q "D:\testfolder"
rm -rf /config/filegroups/*/
Echo batch file to delete folder
@RD /S /Q "D:\testfolder"