Remove files of same type (extension)

Markus Faust marfadeu at gmx.de
Mon Sep 24 06:25:17 EDT 2001


Hi,

I want to write a script (Windows NT) which deletes all files in a directory
with the same extension, i.e. all .dat files.

Is there something like os.remove('*.dat') or how can I achieve this goal?

Thanks in advance!
Markus





More information about the Python-list mailing list