---
title: "Remove Api Key"
method: DELETE
path: "/api/api_key/{key_id}"
tags: ["API Keys"]
---

# Remove Api Key

`DELETE /api/api_key/{key_id}`

## 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_key/{key_id}`
- Auth: OAuth 2
  - Password
  - Token URL: `/api/admin/token`

## Path parameters

- `key_id` integer, required

## Response `204`

Successful Response

## Other responses

- `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_key/:key_id/delete.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)
