---
title: "Delete a secret"
method: DELETE
path: "/v1/deployments/secrets/{id}"
tags: ["Secrets"]
---

# Delete a secret

`DELETE /v1/deployments/secrets/{id}`

## Request

- Base URL: `https://api.together.ai`
- URL: `https://api.together.ai/v1/deployments/secrets/{id}`
- Auth: HTTP bearer

Delete an existing secret

## Path parameters

- `id` string, required: Secret ID or name

## Response `200`

Secret deleted successfully

- object

## Other responses

- `404`: Secret not found
- `500`: Internal server error

## Changes

- **2026-10-22** `bb5257b3173a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/together/apis/together-apis/changes/v1/deployments/secrets/:id/delete.md)

---

[API](https://skmtc.dev/together/apis/together-apis.md) - [All operations](https://skmtc.dev/together/apis/together-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/together/apis/together-apis/revisions/93438ddac711?raw)
