---
title: "Delete an SSH public key"
method: DELETE
path: "/v1/orgs/{orgId}/ssh-keys/{id}"
tags: ["SSH Keys"]
---

# Delete an SSH public key

`DELETE /v1/orgs/{orgId}/ssh-keys/{id}`

Removes the key from the org and scrubs it from every VM it was attached to. Refused with 409 (code KEY_IN_USE) when it is the only key that still grants access to a VM, since deleting it would strand that VM; attach another key to those VMs first. listOrgSshKeys reports this as blockingVms.

## Path parameters

- `orgId` string, required
- `id` string, required

## Response `204`

Deleted

## Other responses

- `401` — Missing or invalid API key
- `403` — API key lacks the required scope
- `409` — The request conflicts with existing state

---

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