Deletes unnecessary tmp file