Say if you want to delete all folders matching a text “ABC” recursively in a directory, run the following command on the directory
FOR /d /r . %d IN (ABC) DO @IF EXIST “%d” rd /s /q “%d”
Say if you want to delete all folders matching a text “ABC” recursively in a directory, run the following command on the directory
FOR /d /r . %d IN (ABC) DO @IF EXIST “%d” rd /s /q “%d”