---
title: "Remove an organization secret"
method: DELETE
path: "/v1/org/secrets/{secretId}"
tags: ["Secrets"]
---

# Remove an organization secret

`DELETE /v1/org/secrets/{secretId}`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/org/secrets/{secretId}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Deletes a secret along with all of its blind-use grants and approval rules.

## Path parameters

- `secretId` string, required

## Response `200`

Deleted secret.

- DeleteOrganizationSecretResponse
  - `deleted` true, required
  - `id` string, required
  - `name` string, required

## Other responses

- `400`: Invalid request or machine caller attempted to write a secret.
- `401`: Sign-in required.
- `403`: Missing permission, recent sign-in, or blind-use authorization.
- `404`: Organization secrets are off or resource not found.

## Changes

- **2026-12-02** `1c1cd9580c18`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/org/secrets/:secretId/delete.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
