import os # os.remove("text.txt") # print("File deleted") for file in os.listdir("fileDirectory"): os.remove("fileDirectory"+file) print(file, "deleted")