Gastrectomy is surgery to remove part or all of the stomach. 1  If only part of the stomach is removed, it is called partial gastrectomy.  If the whole stomach is removed, it is called total gastrectomy.