How to end a friendship

How do you end a friendship in a respectful way? I’ve been friends with someone for over 20 years and I’m ready to let them go.