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

# Delete Secret

`DELETE /secrets/{secret_id}`

## Path parameters

- `secret_id` string, required

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

## Changes

> 359 revisions in range; 4 could not be searched.

- **2026-05-08** `5e6f53ce5d08` — 1 info
  - endpoint added
- **2025-06-27** `e3e84db47198` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/secrets/:secret_id/delete.md)

---

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