---
title: "Delete public key"
method: DELETE
path: "/api/vps/v1/public-keys/{publicKeyId}"
tags: ["VPS: Public Keys"]
---

# Delete public key

`DELETE /api/vps/v1/public-keys/{publicKeyId}`

Delete a public key from your account. 

**Deleting public key from account does not remove it from virtual machine** 
       
Use this endpoint to remove unused SSH keys from account.

## Path parameters

- `publicKeyId` integer, required

## Response `200`

Success empty response

- CommonSuccessEmptyResource
  - `message` string

## Other responses

- `401` — Unauthenticated response
- `500` — Error response

---

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