Canceling Membership

Apologies if this has been posted before, but curious as to how others have had success in cancelling their memberships. I live in NYC and don’t want to pay the outrageous fee anymore since my new building has a gym and play tennis which is also quite expensive.

Any tips?