Not sure I understand the problem. If the ESP is properly flashed, connected and reconized by Thonny, then Upload/Show opcions should be enabled. In my version I don't have an "Erase" option. To do that, I use the shell by:
import os (or uos)
os.listdir() (or listdir('folder')
os.rename('myfile') (or remove('myfie')