Comment supprimer tout sur un fichier python

f = open('file.txt', 'r+')
f.truncate(0) # need '0' when using r+
Energetic Eel