if you want to know how you can empty or erase all the contents of a file in linux its simple

you this shell command:

tail