Waste management in drilling oil wells