xlsx
path = '/users/user/folder'. <-- Folder that has all the files list_ = [] for file_ in path: fileList = glob.glob(path + "/*.xlsx") fileList1 = " ".join(str(x) for x in fileList) try: os.remove(fileList1) except Exception as e: print(e)