Switch to formula/dry up breastmilk

Megan • Mom to 1 crazy baby
So we are having to switch my little guy from being exclusively breast fed to formula due to issues with his tummy and other things. My question is how did you guys dry up your supply? We couldn't go gradual to formula he doesn't nurse at all anymore and I don't want to be in pain for longer than necessary since I can't nurse anymore.