---
title: "Delete a customer"
method: DELETE
path: "/customers/{id}"
tags: ["Admin Customers"]
---

# Delete a customer

`DELETE /customers/{id}`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/customers/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/customers/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Refuses if the customer has any pending/processing orders (400).

## Path parameters

- `id` integer, required

## Response `200`

Customer deleted.

## Other responses

- `400`: Refused — customer has active orders.
- `404`: Not found

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
