Code:
FOR /f "delims=" %%G in (folders.txt) DO RMDIR /s /q "%%G"