---
title: "Bulk Delete Api Keys"
method: POST
path: "/api/api_keys/bulk/delete"
tags: ["API Keys"]
---

# Bulk Delete Api Keys

`POST /api/api_keys/bulk/delete`

## Request

- Base URL: `https://api.ha-man2.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ha-man2.com/api/api_keys/bulk/delete`
- Auth: OAuth 2
  - Password
  - Token URL: `/api/admin/token`

## Request body

- BulkAPIKeySelection: Model for bulk API key selection by IDs.
  - `ids` integer[]

## Response `200`

Successful Response

- RemoveAPIKeysResponse: Response model for bulk API key deletion.
  - `api_keys` string[], required
  - `count` integer, required

## Other responses

- `400`: BadRequest Error
- `401`: Unauthorized Error
- `403`: Forbidden Error
- `404`: NotFound Error
- `422`: Validation Error

## Changes

- **2026-11-03** `a7dc3fda908f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ha-man2/apis/pasarguardapi/changes/api/api_keys/bulk/delete/post.md)

---

[API](https://skmtc.dev/ha-man2/apis/pasarguardapi.md) - [All operations](https://skmtc.dev/ha-man2/apis/pasarguardapi/llms.txt) - [OpenAPI document](https://skmtc.dev/ha-man2/apis/pasarguardapi/revisions/a7dc3fda908f?raw)
