Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
You can manage or remove your payment methods here:
Payment options: https://account.microsoft.com/billing/payments
If the card still cannot be removed after the subscription has ended and there are no pending payments, contact Microsoft Support so they can check why the payment method remains linked to the account.