Remove useless information from the file