Rarely, a cholecystectomy (or gall bladder removal surgery) 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.