Delete the log file properly.