# Delete a customer account

`POST /customer-accounts/{id}/delete` · Rivier · contacts

Delete a customer account: sessions and passkeys end and the address is freed. The person's orders, bookings and invoices stay (they are the business's records); their data-subject request is the compliance center's. Needs a person's approval.

- Scope: contacts:write
- Graphql: Mutation.contactsCustomerAccountRemove
- Sdk: contacts.customerAccount.remove
- Cli: contacts customer account remove

## Parameters

- `id` (path, required), string

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/customer-accounts/{id}/delete' \
  -H 'Authorization: Bearer $KEY'
```
