---
title: "Delete a secret"
method: DELETE
path: "/secret/{secretId}"
tags: ["Secrets"]
---

# Delete a secret

`DELETE /secret/{secretId}`

Delete a secret from the vault.

## Path parameters

- `secretId` string, required

## Response `200`

Secret deleted.

- object
  - `status` boolean
  - `data` string

## Other responses

- `400` — Invalid input
- `401` — Unauthorized access
- `403` — Forbidden access
- `500` — Internal server error

## Changes

- **2026-09-02** `8546eaa96566` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/smallest-inc/apis/agent-management-api/changes/secret/:secretId/delete.md)

---

[API](https://skmtc.dev/smallest-inc/apis/agent-management-api.md) · [All operations](https://skmtc.dev/smallest-inc/apis/agent-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/smallest-inc/agent-management-api/revisions/fed4f750ea02/schema)
