---
title: "Remove a customer"
method: DELETE
path: "/customers/{customer_id}"
tags: ["Customers"]
---

# Remove a customer

`DELETE /customers/{customer_id}`

## Request

- Base URL: `https://www.saltedge.com/api/v5`
- URL: `https://www.saltedge.com/api/v5/customers/{customer_id}`
- Auth: API key in header `App-id` and API key in header `Secret`
- TypeScript: <https://skmtc.dev/saltedge/apis/salt-edge-account-information-api/docs/customers/:customer_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes a customer, returning the customer object.
Revokes all consents for this customer.
This route is available only for web applications.

## Path parameters

- `customer_id` integer, required: the `id` of the customer

## Response `200`

OK

- RemovedCustomerResponse
  - `data` object
    - `deleted` boolean
    - `id` integer

## Other responses

- `400`: We have received some other request format instead of JSON, or the body could not be parsed
- `404`: A customer with such `customer_id` could not be found

## Changes

> 17 revisions in range; 1 not diffed.

- **2021-07-29** `9eda9646ec8c`: 6 breaking, 8 info
  - the `request` response's property type changed from `string` to `object` for status `400`
  - the `request` response's property type changed from `string` to `object` for status `404`
  - removed the required property `error_class` from the response with the `400` status
  - removed the required property `error_class` from the response with the `404` status
  - …10 more

[Operation history](https://skmtc.dev/saltedge/apis/salt-edge-account-information-api/changes/customers/:customer_id/delete.md)

---

[API](https://skmtc.dev/saltedge/apis/salt-edge-account-information-api.md) - [All operations](https://skmtc.dev/saltedge/apis/salt-edge-account-information-api/llms.txt) - [OpenAPI document](https://skmtc.dev/saltedge/apis/salt-edge-account-information-api/revisions/acda2850de69?raw)
