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

# Delete Customer

> Use this API to remove a customer record from the system. Use this API to permanently delete customer information when it is no longer needed or upon customer request for data deletion.




## OpenAPI

````yaml /openapi/payments/flowwise.yaml delete /customer/{customer_id}
openapi: 3.0.3
info:
  title: Flowwise Native API
  version: 1.0.0
  description: >
    Manage orders, payments, refunds, and customers using the Flowwise Native
    API.

    [Source](https://cashfree.atlassian.net/wiki/spaces/ORC/pages/1084032020/API+Documentation)
servers:
  - url: https://sandbox.flowwise.com/router
    description: Sandbox
  - url: https://app.flowwise.com/router
    description: Production
security:
  - ApiKeyAuth: []
    ApiSecret: []
paths:
  /customer/{customer_id}:
    delete:
      summary: Delete Customer
      description: >
        Use this API to remove a customer record from the system. Use this API
        to permanently delete customer information when it is no longer needed
        or upon customer request for data deletion.
      parameters:
        - $ref: '#/components/parameters/CustomerId'
      responses:
        '204':
          description: Success response for customer deletion.
        '400':
          description: Bad Request - Invalid customer ID format
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                message: Invalid customer ID format provided
                code: invalid_customer_id
                type: validation_error
        '401':
          description: Unauthorized - Invalid or missing authentication credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                message: Invalid API credentials provided
                code: unauthorized
                type: authentication_error
        '404':
          description: Not Found - Customer not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                message: Customer not found with the provided customer ID
                code: customer_not_found
                type: resource_error
        '500':
          description: Internal Server Error - Customer deletion failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                message: Customer deletion failed due to server error
                code: deletion_failed
                type: server_error
components:
  parameters:
    CustomerId:
      name: customer_id
      in: path
      required: true
      description: Unique identifier for the customer.
      schema:
        type: string
        example: cust_priya_sharma_2024
  schemas:
    ErrorResponse:
      type: object
      description: Error response structure returned when an API request fails.
      properties:
        message:
          type: string
          description: Human-readable error message describing what went wrong.
        code:
          type: string
          description: Machine-readable error code for programmatic handling.
        type:
          type: string
          description: Category or type of error that occurred.
      required:
        - message
        - code
        - type
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-client-id
      description: >-
        Client app ID. You can find your app ID in the [Merchant
        Dashboard](https://merchant.cashfree.com/auth/login/pg/developers/api-keys?env=prod).
    ApiSecret:
      type: apiKey
      in: header
      name: x-client-secret
      description: >-
        Client secret key. You can find your secret key in the [Merchant
        Dashboard](https://merchant.cashfree.com/auth/login/pg/developers/api-keys?env=prod).

````