First and foremost, you need to make sure that you have the latest version of iOS or iPadOS or macOS.

Important: All payment information cannot be removed if you have subscriptions, an unpaid balance, or share purchases with your Family Sharing group.

Hope this helps you with your issue!