---
title: "Delete secret by key"
method: DELETE
path: "/v1/secret/{key}"
tags: ["secret"]
---

# Delete secret by key

`DELETE /v1/secret/{key}`

## Request

- Base URL: `https://api.octoai.cloud`
- URL: `https://api.octoai.cloud/v1/secret/{key}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/octoml/apis/octoai-api/docs/v1/secret/:key/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `key` string, required

## Response `200`

A message confirming deletion

- object
  - `message` string

---

[API](https://skmtc.dev/octoml/apis/octoai-api.md) - [All operations](https://skmtc.dev/octoml/apis/octoai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/octoml/apis/octoai-api/revisions/ff4ad53097bc?raw)
