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

# Delete Secret

`DELETE /v1/secrets/{secret_id}`

Delete a secret by id.

This endpoint:
- Requires API key authentication
- Permanently deletes the encrypted secret from the database

Args:
    service: Injected secrets service
    secret_id: The id of the secret to delete

Returns:
    Response confirming deletion

Raises:
    400 Bad Request: If user doesn't have an associated space
    404 Not Found: If the secret doesn't exist

## Path parameters

- `secret_id` string, required

## Cookies

- `la_session` string

## Response `200`

Successful Response

- ResponseNoneType
  - `code` integer
  - `data` unknown
  - `message` string

## Other responses

- `422` — Validation Error

---

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