---
search:
  tags:
    - Secrets
    - DELETE
seo:
  description: >-
    Removes a secret from a tenant. This deploys a new version with the same…
    Reference for the DELETE /_luna/secrets/{tenant}/{name} endpoint in the Luna
    API.
sidebar:
  label: Delete a secret
  badge: DELETE
title: Delete a secret
type: openapi-operation
---
Removes a secret from a tenant. This deploys a new version with the same code, so that running lunas stop seeing it.

`DELETE /_luna/secrets/{tenant}/{name}`

**Responses**

- `200` — The secret is gone.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "version": 0
}
```
