An apparatus for discharging slag containing residue occuring during gasification of an ash containing solid fuel with oxygen or an oxygen containing gas comprising a solid fuel gasifier, means for feeding oxygen or an oxygen containing gas to said gasifier, a water bath in said gasifier for receiving solid or liquid slag, said water bath in fluid communication via a first valved line with a separating chamber having means therein for separating solids from water, said separating chamber in fluid communication with a lock vessel which in turn is in fluid communication with a collecting vessel via a second valved line, which collecting vessel is connected to a reduced-pressure gas network, said separating chamber being in fluid communication additionally via a ring header through which passes water separated in said separating chamber, said ring header being in the form of a closed circuit pipeline and connected via a third valved line to a conveying means disposed between a first valve and a second valve in said third valved line to said water bath, said third valved line branched by a line between said conveying means and the valve downstream thereof by a fourth valved line having a cooling means therein which interconnects with said first valved line, said ring header in fluid communication with a water supply container via a line which intersects said third valved line, said apparatus further comprising means for separating water and slag obtained in said collecting vessel and means for returning water so-separated to said water supply container via a return line.