How is a feeding tube replaced and removed?

Depends. Feeding tubes are either placed in a percutaneous fashion or an open fashion, depending on multiple factors with the patient. The percutaneous entry route is done without surgery, the open route is a surgical procedure. Either way, most tubes can usually be removed by a hard pull on the tube. It comes out of the skin incision and the tract usually closes up on it's own.