---
title: "DELETE /zones/{zone_id}/secrets/{id}"
method: DELETE
path: "/zones/{zone_id}/secrets/{id}"
tags: ["svc-vault-api_other"]
---

# DELETE /zones/{zone_id}/secrets/{id}

`DELETE /zones/{zone_id}/secrets/{id}`

## Path parameters

- `zone_id` string, required — A globally unique opaque identifier
- `id` string, required

## Headers

- `X-Client-Request-ID` string, uuid

## Response `204`

Secret deleted successfully

## Other responses

- `400` — bad request error response when caller supplied invalid input data
- `401` — unauthorized error response when caller session is not authenticated
- `403` — forbidden error response when caller does not have permissions to a resource
- `429` — rate limit exceeded error response when caller has exhausted api limits for the given time period
- `500` — internal server error response when server encountered error of its own creation
- `503` — service unavailable error when server you're attempting to reach is not available
- `default` — internal server error response when server encountered error of its own creation

## Changes

- **2026-03-16** `d3d69f45bfed` — 3 info
  - the endpoint scheme security `OAuth2` was added to the API
  - the endpoint scheme security `bearerAuth` was added to the API
  - the endpoint scheme security `vault-api_bearerAuth` was removed from the API
- **2026-02-06** `edd1b760a989` — 1 warning, 2 info
  - deleted the `header` request parameter `X-Request-ID`
  - the endpoint scheme security `vault-api_bearerAuth` was added to the API
  - the endpoint scheme security `vault_bearerAuth` was removed from the API

[Change history](https://skmtc.dev/keycardai/apis/untitled-api/changes/zones/:zone_id/secrets/:id/delete.md)

---

[API](https://skmtc.dev/keycardai/apis/untitled-api.md) · [All operations](https://skmtc.dev/keycardai/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keycardai/untitled-api/revisions/d65d51379d93/schema)
