📅  最后修改于: 2022-03-11 14:46:28.257000             🧑  作者: Mango
import os
# os.remove("text.txt")
# print("File deleted")
for file in os.listdir("fileDirectory"):
os.remove("fileDirectory"+file)
print(file, "deleted")