Gastrectomy is used to treat stomach problems that aren't helped by other treatments. Your doctor may recommend a gastrectomy to treat: benign, or noncancerous, tumors. bleeding.