I know how to delete single files, however I am lost in my implementation of how to delete all files in a directory of one type.
Say the directory is \\myfolder
Use the glob module:
import os from glob import glob for f in glob ('myfolder/*.config'): os.unlink (f)