Surgery to remove the entire pancreas. Part of the stomach, part of the small intestine, the common bile duct, gallbladder, spleen, and nearby lymph nodes are also removed.