---
title: "Mass delete customer groups"
method: POST
path: "/customers/groups/mass-delete"
tags: ["Admin Customer Groups"]
---

# Mass delete customer groups

`POST /customers/groups/mass-delete`

## Request

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

System groups and groups with attached customers are skipped with a reason.

## Request body

- object
  - `indices` integer[], required

## Response `200`

Mass-delete result.

## Other responses

- `400`: Invalid input
- `422`: No indices supplied.

---

[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)
