---
title: "Delete a secret"
method: DELETE
path: "/servers/{namespace}/{server}/secrets/{secretName}"
tags: ["servers"]
---

# Delete a secret

`DELETE /servers/{namespace}/{server}/secrets/{secretName}`

Delete a secret by name from the server.

## Path parameters

- `namespace` string, required
- `server` string, required
- `secretName` string, required

## Response `200`

Secret deleted

- object
  - `success` boolean, required

## Other responses

- `404` — Server not found

## Changes

- **2026-01-25** `ea538dc2369a` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/smithery-ai/apis/smithery-platform-api/changes/servers/:namespace/:server/secrets/:secretName/delete.md)

---

[API](https://skmtc.dev/smithery-ai/apis/smithery-platform-api.md) · [All operations](https://skmtc.dev/smithery-ai/apis/smithery-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/smithery-ai/apis/smithery-platform-api/revisions/eab7f6413d3a?raw)
