code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.Customer.delete_source(
    "cus_8TEMHVY5moxIPI",
    "card_1LSdvI2eZvKYlo2CS9wK7l0M",
  )
  '''Response {
    "id": "card_1LSdvI2eZvKYlo2CS9wK7l0M",
    "object": "card",
    "deleted": true
  }'''
nl: Delete a card  You can delete cards from a customer.
  
  
    If you delete a card that is currently the default source, then the most
    recently added source will become the new default. If you delete a card that is the last
    remaining source on the customer, then the default_source attribute will become null.
  
  
    For recipients: if you delete the default card, then the most recently added card will become the new default. If you delete the last remaining card on a recipient, then the
    default_card attribute will become null.
  
  
    Note that for cards belonging to customers, you might want to prevent customers on paid subscriptions from deleting all cards on file, so that there is at least one default card for the next invoice payment attempt.
  ParametersNo parameters.ReturnsReturns the deleted Card object