cara menghapus file acar

#Create an empty variable
empty_list = []
#Open the pickle file in 'wb' so that you can write and dump the empty variable
openfile = open('filename', 'wb')
pickle.dump(empty_list, openfile)
openfile.close()

DogSaysQuack