---
title: "Delete API key by name"
method: DELETE
path: "/agent_api_keys/name/{api_key_name}"
tags: ["Agent APIKeys"]
---

# Delete API key by name

`DELETE /agent_api_keys/name/{api_key_name}`

Delete API key by name.

## Path parameters

- `api_key_name` string, required

## Query parameters

- `agent_id` string, nullable
- `agent_name` string, nullable
- `api_key_type` 'internal' | 'external' | 'github' | 'slack'

## Response `200`

Successful Response

- string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/terminaluse/apis/sb0-api.md) · [All operations](https://skmtc.net/terminaluse/apis/sb0-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/terminaluse/sb0-api/versions/f24a474dc415/schema)
