Rarely, a cholecystectomy which is a gall bladder removal is performed to avoid the gallstones that may result from rapid weight loss. More commonly, patients take medications after the operation to dissolve possible gallstones.