First of all, good for you for wanting to get off of them. The answer is slowly.
I know it's a short answer, but it's true.
Take it day by day, and eventually your body will be used to not having the pills in it's system. You will have cravings; you must ignore them.
I know this is a relatively small time, but after my tonsillectomy/adenoid removal I was taking vicodin/liquid vicodin 2x a day, sometimes 3 when my mom wasn't paying attention, for about a month.
I stopped cold turkey. Worst.Idea.Ever. I didn't sleep right for about two weeks, I had mini convulsions and that withdrawal feeling.
But guess what? It went away, and I'm opiate free.
You can be too.