---
title: "Mass-delete RMA custom fields"
method: POST
path: "/rma/custom-fields/mass-delete"
tags: ["Admin Sales: RMA"]
---

# Mass-delete RMA custom fields

`POST /rma/custom-fields/mass-delete`

## Request

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

Permission: sales.rma.custom-fields.delete.

## Request body

- object
  - `indices` integer[], required

## Response `200`

The deleted custom-field ids.

## Other responses

- `201`: AdminRmaCustomFieldMassDelete resource created
- `400`: Invalid input
- `422`: Validation Error

---

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