In commercial, corporate, and residential structures with many levels, a long sweep—often with a cleanout feature—serves various functions. Its main function in a building is to move wastewater from higher levels to the ground floor.