How to Delete files

imagine i make a program that needs to store a var in a separated file ( Auxiliar_file.txt ) and when i finish it i want the program to delet it.
all i know is to erase whats inside but how i delete it ?

REASON: i want to make a game and i will need few vars ( HP,MP,Points,EXP,LVL ... ) and when the user delelets the account ( in the game imagine 1-Generate caracter; 2-Load character ... see?? ) well whe the user wants to delete its character how i delete the files i created ?????