---
title: "Delete Key"
method: DELETE
path: "/v1/projects/{project_id}/keys/{key_id}"
tags: ["keys"]
---

# Delete Key

`DELETE /v1/projects/{project_id}/keys/{key_id}`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/projects/{project_id}/keys/{key_id}`
- Auth: none declared

Soft-delete (move to trash). Restorable via POST /{key_id}/restore.
Hard removal is the separate, ProjectAdmin-only POST /bulk/purge.

## Path parameters

- `key_id` string, required
- `project_id` string, required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sonenta/apis/sonenta-api.md) · [All operations](https://skmtc.dev/sonenta/apis/sonenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sonenta/apis/sonenta-api/revisions/f853ea49fb05?raw)
