I have a simple doubt. I have generated some files in different formats (.csv, .txt, etc)
I need to delete some. Specifically all ".csv" and those that end with "h + *. Txt" (with * any integer from 1 to 99).
I've tried this:
for archivos in glob.glob((ruta_carpeta) + '*.csv')
os.remove(archivos)
I've also tried:
os.remove(ruta_carpeta+'\'+'*.csv')
But it does not work for me Any suggestions Thanks