There are steam or hot water "boilers" for heating that were installed when buildings went up some one hundred years ago, and still are going strong. Most have long been converted from coal to oil and or natural gas (some still do burn the first), but other than routine maintenance the things require nothing more and could in theory last another decade.
You can walk past many residential multifamily buildings here in Manhattan, NYC and peek into basements, there you'll find the original boilers still happily doing what they were meant to do. Many of these are "pre-war" buildings meaning they went up before WWI.
Boiler size:
Back in the day the "Dead Men" who designed, built and installed steam or hot water heating systems vastly oversized the things. This meant you had huge boilers versus the smaller replacements you see today.
Systems were oversized for several reasons. One, homes/buildings were vastly more "drafty" than today so heating systems had to be able to at least maintain 70F indoor temps when it could be (well) below freezing outdoors.
Next due to several influences (most notably the Spanish Flu epidemic of 1918 there came a theory illness could be prevented by proper indoor ventilation. This meant keeping windows open even in winter. By habit or even local legal statue heating systems had to be able to keep a certain indoor temp even with all those windows open.
The other interesting thing is that when coal was the fuel used it was mainly women/housewives who tended the boilers during the week. It was part of their housekeeping duties and many were quite good. However on the weekends His Nibbs took over and invariably the fire suffered because often he didn't know what he was doing and a smart wife learned to steer clear. So heating systems were all tolled oversized several times to deal with all these situations.
Fast forward to modern times buildings have become less drafty, better insulated and so forth all in aid of saving energy. Thus you don't need those huge boilers any longer as heating requirements have now
Boiler removal:
Often those huge old boilers are simply decommissioned but left where they are.
Usually boilers go into buildings soon as the foundations are finished, and often there just isn't any way to get those behemoths out again. The usual way is for the things to be cut up and taken out in bits and pieces. However this can cause nightmares if asbestos was used (and it often was) for any part of the boiler/system.
https://www.youtube.com/watch?v=TQB0KK2rxcw