Drying up milk supply

I am trying to dry up my milk supply and my question is - will it slow down if I only pump for just a few minutes to relieve the pain?

Before I was pumping every 2 hours for at least 20 minutes but if I cut it back to once or twice a day for no more than 5 minutes it should slow down, right?