---
title: "Mass delete search terms"
method: POST
path: "/marketing/search-terms/mass-delete"
tags: ["Admin Marketing: Search & SEO"]
---

# Mass delete search terms

`POST /marketing/search-terms/mass-delete`

## Request

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

Deletes a batch of search terms. Non-existent IDs are silently skipped (mirrors monolith).

## Request body

- object
  - `indices` integer[], required

## Response `200`

Search terms deleted.

## Other responses

- `400`: Invalid input
- `422`: Validation failed (e.g. empty indices).

---

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