Ways to dry up milk supply?

I had my baby boy on the 18th and attempted to breast feed and he never really seemed interested in it so we also tried formula too, he seemed to take the formula so much better, so I was wondering how I can dry up my milk supply to formula feed? One of the nurses said something about pumping less and less each day but I was wondering if there was something else I could do ?