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

# Mass-delete RMA rules

`POST /rma/rules/mass-delete`

## Request

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

Permission: sales.rma.rules.delete.

## Request body

- object
  - `indices` integer[], required

## Response `200`

The deleted rule ids.

## Other responses

- `201`: AdminRmaRuleMassDelete 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)
