I need to write a command in a .bat file that recursively deletes all the folders starting with a certain string. How may I achieve this ?
FOR /F "tokens=*" %i IN ('DIR **[[SearchTerm]]** /A:D /s /b') do rd /S / Q %i