Taking away the pacifier at the toddler age can be difficult but it doesn’t have to be. My recommendation is always the gradual approach.
Make baby part of the process. It could be telling a fun story, talking about another toddler friend who gave away their pacifier, tucking away the pacifier and saying goodbye.