> ## Documentation Index
> Fetch the complete documentation index at: https://dev.moonpay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a payment method

> Remove a stored payment method for a customer



## OpenAPI

````yaml DELETE /platform/v1/payment-methods/{paymentMethodId}
openapi: 3.1.0
info:
  title: MoonPay
  version: 1.0.0
servers:
  - url: https://api.moonpay.com
    description: Production Environment
    variables: {}
  - url: https://api.moonpay.dev
    description: Sandbox Environment
    variables: {}
security: []
tags:
  - name: Assets
  - name: Quote
  - name: Customer
  - name: Identity
  - name: Transactions
paths:
  /platform/v1/payment-methods/{paymentMethodId}:
    delete:
      summary: Delete a payment method
      description: Delete a stored payment method for the authenticated customer.
      operationId: PlatformPaymentMethods_deletePaymentMethod
      parameters:
        - name: paymentMethodId
          in: path
          required: true
          description: ID of the payment method to delete.
          schema:
            type: string
      responses:
        '204':
          description: >-
            There is no content to send for this request, but the headers may be
            useful. 
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
        '401':
          description: Access is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedError'
        '409':
          description: The request conflicts with the current state of the server.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/MoonPay.Payments.DeletePaymentMethodConflictError
      security:
        - AccessTokenAuth: []
components:
  schemas:
    UnauthorizedError:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          enum:
            - unauthorized
        message:
          type: string
          enum:
            - Not authorized
      unevaluatedProperties:
        not: {}
      description: Missing or invalid credentials.
    MoonPay.Payments.DeletePaymentMethodConflictError:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          enum:
            - conflict
        message:
          type: string
          description: Human-readable error message.
          examples:
            - >-
              Payment method cannot be deleted while it has pending
              transactions.
      unevaluatedProperties:
        not: {}
  securitySchemes:
    AccessTokenAuth:
      type: http
      scheme: bearer
      description: |-
        Bearer authentication header using an access token.

        Example: `Authorization: Bearer <accessToken>`

````