They could advise me, I have the following problem. I have thousands of folders which in turn has several sub-folders, there is specifically a sub-folder that is named "0".
Example:
├ DISCO_1 (CARPETA_Principal)
| ├─ 2014353(SUB-CARPETA)
-(SUB-Carpeta"0") #[Carpeta que se desea borrar]
| ├─ 2014354 (SUB-CARPETA)
-(SUB-Carpeta"0") #[Carpeta que se desea borrar]
| └─ 2014355 (SUB-CARPETA)
-(SUB-Carpeta"0") #[Carpeta que se desea borrar]
This is a folder that does not interest me and what I want is to delete all these sub-folders "0"
I know what it is with:
import shutil
shutil.rmtree('C:\Test\')
How could I do it?