Erase the file when clearing