The excavator moves up the ramp and eats away at whats behind it. It slowly does this until the whole ramp is gone. For deeper holes I think they keep one excavator in the pit and one on the street and the dirt is passed up. Once the pit is cleared the excavator in the pit is lifted out by the crane. At least that's how I remember seeing it elsewhere.