---
title: "Delete Current Workspace Secret"
method: DELETE
path: "/api/v1/workspaces/current/secrets/{key}"
tags: ["workspaces"]
---

# Delete Current Workspace Secret

`DELETE /api/v1/workspaces/current/secrets/{key}`

## Request

- Base URL: `https://api.smith.langchain.com`
- URL: `https://api.smith.langchain.com/api/v1/workspaces/current/secrets/{key}`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in header `X-Tenant-Id`
  - HTTP bearer

Delete a workspace secret and its allowed hosts. Missing keys succeed.

## Path parameters

- `key` string, required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `1a8ee9358d81`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v1/workspaces/current/secrets/:key/delete.md)

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) - [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) - [OpenAPI document](https://skmtc.dev/langchain-ai/apis/langsmith/revisions/7a01c01f75e8?raw)
