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

# Delete customer

> Permanently delete a customer from your program

## Endpoint

```
DELETE https://api.partnero.com/v1/customers/{key}
```

<Warning>
  Deleting a customer will also remove their transaction history and affect partner commission calculations. Consider using [suspend](/api-reference/customers/suspend) instead.
</Warning>

## Parameters

You can identify the customer by path parameter or request body:

| Parameter | Location | Type   | Description                      |
| --------- | -------- | ------ | -------------------------------- |
| `key`     | path     | string | Customer's unique key in the URL |
| `key`     | body     | string | Customer's key in the JSON body  |

## Request

<CodeGroup>
  ```bash cURL (path parameter) theme={null}
  curl --location --request DELETE 'https://api.partnero.com/v1/customers/customer_123' \
    --header 'Authorization: Bearer YOUR_API_KEY'
  ```

  ```bash cURL (request body) theme={null}
  curl --location --request DELETE 'https://api.partnero.com/v1/customers' \
    --header 'Authorization: Bearer YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
      "key": "customer_123"
    }'
  ```
</CodeGroup>

## Response

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "status": 1
  }
  ```
</ResponseExample>

## Error responses

| Status | Error              | Solution                          |
| ------ | ------------------ | --------------------------------- |
| 404    | Customer not found | Check the customer key is correct |
