# Delete all text in a text file
f = open("text_file.txt", "r+")
f.truncate(0)
f.close()
import os
os.remove('file_path')
import os
# os.remove("text.txt")
# print("File deleted")
for file in os.listdir("fileDirectory"):
os.remove("fileDirectory"+file)
print(file, "deleted")