---
title: "Delete Secret"
method: DELETE
path: "/v1/organizations/secrets/{secret_name}"
tags: ["Organization Secrets"]
---

# Delete Secret

`DELETE /v1/organizations/secrets/{secret_name}`

## Request

- Base URL: `https://api.mixpeek.com`
- URL: `https://api.mixpeek.com/v1/organizations/secrets/{secret_name}`
- Auth: HTTP bearer

Delete a secret from organization vault.

**Warning**:
- Deletion is permanent and immediate
- Any api_call stages using this secret will fail
- No confirmation prompt - use with caution

**Use Cases**:
- Remove unused credentials
- Clean up after service decommissioning
- Security incident response

## Path parameters

- `secret_name` string, required

## Response `200`

Successful Response

- SecretResponse: Response for secret operations (NEVER includes actual decrypted value). This response is returned after creating, updating, or deleting a secret. For security, the actual secret value is NEVER included in API responses. Only the secret name and operation status are returned. **Security**: - Decrypted secret values are NEVER included - Only secret name and operation status returned - Actual value only accessible by internal services **Fields**: - secret_name: Name of the secret that was operated on - created: True if secret was created (null for other operations) - updated: True if secret was updated (null for other operations) - deleted: True if secret was deleted (null for other operations)
  - `secret_name` string, required: Name of the secret that was operated on. This is the same name provided in the request. Use this name to reference the secret in api_call stage configuration.
  - `created` boolean, nullable: True if this secret was created, null otherwise. Only set for POST /secrets operations.
  - `updated` boolean, nullable: True if this secret was updated, null otherwise. Only set for PUT /secrets/{name} operations.
  - `deleted` boolean, nullable: True if this secret was deleted, null otherwise. Only set for DELETE /secrets/{name} operations.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `429`: Too Many Requests
- `500`: Internal Server Error
- `503`: Service Unavailable

## Changes

- **2026-10-09** `61a175e8eb9a`: 1 warning, 5 info
  - removed the optional property `detail` from the response with the `422` status
  - added the non-success response with the status `429`
  - added the non-success response with the status `503`
  - added the optional property `success` to the response with the `422` status
  - …2 more
- **2026-08-09** `5d4c905106b4`: 1 info
  - the endpoint scheme security `BearerAuth` was added to the API

[Operation history](https://skmtc.dev/mixpeek/apis/mixpeek-api/changes/v1/organizations/secrets/:secret_name/delete.md)

---

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