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

# Delete secret

`DELETE /secrets/{secretId}`

## Path parameters

- `secretId` string, required

## Query parameters

- `remoteNode` string

## Response `204`

Secret deleted

## Other responses

- `401` — Not authenticated
- `403` — Not authorized
- `404` — Not found
- `default` — Generic error response

## Changes

- **2026-05-24** (v1) `8a2d5d3e9608` — 4 warning
  - added the new `rate_limited` enum value to the `code` response property for the response status `401`
  - added the new `rate_limited` enum value to the `code` response property for the response status `403`
  - added the new `rate_limited` enum value to the `code` response property for the response status `404`
  - added the new `rate_limited` enum value to the `code` response property for the response status `default`
- **2026-05-16** (v1) `874b6066ab7d` — 1 info
  - endpoint added
- **2026-04-30** (v1) `50e1d517afc1` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/dagucloud/apis/dagu/changes/secrets/:secretId/delete.md)

---

[API](https://skmtc.dev/dagucloud/apis/dagu.md) · [All operations](https://skmtc.dev/dagucloud/apis/dagu/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dagucloud/dagu/revisions/8a2d5d3e9608/schema)
