Clean ressource file