---
title: "Delete"
method: DELETE
path: "/security/keys/{uuid}"
tags: ["Private Keys"]
---

# Delete

`DELETE /security/keys/{uuid}`

Delete a private key.

## Path parameters

- `uuid` string, required

## Response `200`

Private Key deleted.

- object
  - `message` string

## Other responses

- `400` — Invalid token.
- `401` — Unauthenticated.
- `404` — Private Key not found.
- `422` — Private Key is in use and cannot be deleted.

---

[API](https://skmtc.net/coollabsio/apis/coolify.md) · [All operations](https://skmtc.net/coollabsio/apis/coolify/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coollabsio/coolify/versions/08be5dc8e729/schema)
