---
title: "Delete a vault key"
method: DELETE
path: "/v2/directories/{directoryId}/vault/keys/{keyId}"
tags: ["TokenVaultKeys"]
---

# Delete a vault key

`DELETE /v2/directories/{directoryId}/vault/keys/{keyId}`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v2/directories/{directoryId}/vault/keys/{keyId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Deletes a vault key from a directory. Deleting a key does not affect
credentials that were already encrypted with it; the key simply stops
receiving newly encrypted credentials.

## Path parameters

- `directoryId` string, uuid, required
- `keyId` string, uuid, required

## Response `204`

Success

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

## Changes

- **2026-11-05** `f018071a4515`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api/changes/v2/directories/:directoryId/vault/keys/:keyId/delete.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea?raw)
