Treatment of Choledocholithiasis and Cholangitis Endoscopic retrograde cholangiopancreatography (ERCP) and sphincterotomy If biliary obstruction is suspected, ERCP and sphincterotomy are necessary to remove the stones.