---
title: "delete ssh key"
method: DELETE
path: "/api/v0/ssh/{id}/"
tags: ["Accounts"]
---

# delete ssh key

`DELETE /api/v0/ssh/{id}/`

Removes an SSH key from the authenticated user's account

CLI Usage: `vastai delete ssh-key <id>`

## Path parameters

- `id` integer, required

## Response `200`

SSH key successfully deleted

- object
  - `success` boolean, required

## Other responses

- `400` — Invalid request or SSH key not found

---

[API](https://skmtc.net/vast/apis/vast-ai-api.md) · [All operations](https://skmtc.net/vast/apis/vast-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vast/vast-ai-api/revisions/4ed14f79f796/schema)
