---
title: "Delete Ssh Key"
method: DELETE
path: "/ssh-keys/{key_id}"
---

# Delete Ssh Key

`DELETE /ssh-keys/{key_id}`

## Request

- Base URL: `https://api.xhostd.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xhostd.com/ssh-keys/{key_id}`
- Auth: none declared

Delete one SSH key the caller owns.

A key of another account answers 404 and not 403, the
``DELETE /tokens/{id}`` rule: the answer tells a stranger nothing
about the existence of a row.

## Path parameters

- `key_id` string, uuid, required

## Headers

- `authorization` string, nullable

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xhostd/apis/xhostd-public.md) · [All operations](https://skmtc.dev/xhostd/apis/xhostd-public/llms.txt) · [OpenAPI document](https://skmtc.dev/xhostd/apis/xhostd-public/revisions/bf439c4d1789?raw)
