search & remove files & folders

i need a *.bat that can do as below:files store in c:\test\new1i need to delete all files & folders in new1 but keeping new1 folder.in c:\test contain others folders & files.like i.e. c:\test\new1... I.e. c:\test\new2.. & so oni need to remain all new1 & new2 & so on... but delete all others above this level (mean this *.bat should able to search all folders in c:\test\*.* and delete all others with remain all 1st sub_folder like c:\test\new1 and the others

so far this is what i haveFOR /R c:\test\ %%G IN (/S) DO del /F /Q %%G:: to delete all files in c:\test & its subfoldersFOR /D %%j IN (c:\test\new\*.*) DO RD /S /Q "%%j":: to delete all folder & subfolders in c:\test\NEW

hi Mechanix2Gord /s /q c:\test\new1 only remove folders in new1.. but what i need is this *.bat able to search what ever folders in c:\test\*.*exp: c:\test\new1...... c:\test\new2.... c:\test\new3...so today maybe c:\test\*.* may have 3 folders. but tmr can increase from new1.....to new10 everyday change. but i need to remain what ever folders in c:\test\level 2 folders\level 3 folders\..(means: today have new1,new2,new3.... but tmr can increase to many more) but the command need to remain new1 or new2 or new3.....and the others in the same level with auto search & remove what ever start from level 3 folders.....tq

The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Compnet Ventures, LLC hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.