Clear buffer contents to empty.
Sets the lines array to an empty array, reflecting that the file has been deleted.
if clearing fails