import os import glob path="./" for infile in glob.glob(os.path.join(path,"*.Result.xls")): os.remove(infile)