---
title: "Mass delete attributes"
method: POST
path: "/catalog/attributes/mass-delete"
tags: ["Admin Catalog: Attributes"]
---

# Mass delete attributes

`POST /catalog/attributes/mass-delete`

## Request

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

Deletes a batch of user-defined attributes. If any ID in the batch belongs to a system attribute (`is_user_defined = 0`), the entire batch is rejected with HTTP 422. Non-existent IDs are silently skipped.

## Request body

- object
  - `indices` integer[], required

## Response `200`

Attributes deleted.

## Other responses

- `400`: Invalid input
- `422`: Batch rejected — one or more IDs are system attributes.

---

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