---
title: "Delete all versions of a dek"
method: DELETE
path: "/dek-registry/v1/keks/{name}/deks/{subject}"
tags: ["Data Encryption Keys (v1)"]
---

# Delete all versions of a dek

`DELETE /dek-registry/v1/keks/{name}/deks/{subject}`

## Path parameters

- `name` string, required
- `subject` string, required

## Query parameters

- `algorithm` 'AES128_GCM' | 'AES256_GCM' | 'AES256_SIV'
- `permanent` boolean

## Response `204`

No Content

## Other responses

- `404` — Not found. Error code 40470 -- Key not found. Error code 40471 -- Key not soft-deleted.
- `422` — Error code 42271 -- Invalid key

---

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