code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.PaymentMethod.detach(
    "pm_1LSdci2eZvKYlo2CH68OnHFJ",
  )
  '''Response {
    "id": "pm_1LSYy32eZvKYlo2CoClVP3wb",
    "object": "payment_method",
    "billing_details": {
      "address": {
        "city": null,
        "country": null,
        "line1": null,
        "line2": null,
        "postal_code": null,
        "state": null
      },
      "email": null,
      "name": null,
      "phone": null
    },
    "card": {
      "brand": "visa",
      "checks": {
        "address_line1_check": null,
        "address_postal_code_check": null,
        "cvc_check": "unchecked"
      },
      "country": "US",
      "exp_month": 8,
      "exp_year": 2023,
      "fingerprint": "Xt5EWLLDS7FJjR1c",
      "funding": "credit",
      "generated_from": null,
      "last4": "4242",
      "networks": {
        "available": [
          "visa"
        ],
        "preferred": null
      },
      "three_d_secure_usage": {
        "supported": true
      },
      "wallet": null
    },
    "created": 1659500040,
    "customer": null,
    "livemode": false,
    "metadata": {},
    "redaction": null,
    "type": "card"
  }'''
nl: Detach a PaymentMethod from a CustomerDetaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.ParametersNo parameters.ReturnsReturns a PaymentMethod object