Dewatering and discharge automatically