How to stop milk supply?

My baby is 6 months old, and I have to take treatments for some issues ..the testament doesn't allow breast feeding as it will harm the baby.. I want to know some proven tips that will stop the milk supply and how long did it take for your milk to dry up???