---
title: "Delete SSH key"
method: DELETE
path: "/api/v1/user/ssh-keys/{key_id}"
tags: ["SSH Keys"]
---

# Delete SSH key

`DELETE /api/v1/user/ssh-keys/{key_id}`

Soft-deletes an SSH key. Key must belong to the authenticated user.

## Path parameters

- `key_id` string, required — SSH key hashid

## Response `204`

Key deleted

## Other responses

- `400` — Invalid key ID format
- `401` — Not authenticated
- `404` — Key not found
- `422` — Validation Error

---

[API](https://skmtc.net/phala/apis/phala-cloud-api.md) · [All operations](https://skmtc.net/phala/apis/phala-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/phala/phala-cloud-api/revisions/83c6ae62e860/schema)
