Cleaning and purging