Here's a helpful article about your concern. Just to give you a gist, it helps if you do it in stages. Start with naps then nighttime sleeps afterwards. It will be helpful, too, if you keep a sleeping routine and stick with it.
http://www.whattoexpect.com/toddler/ask-heidi/quitting-co-sleeping.aspx