---
title: "Delete a secret"
method: DELETE
path: "/v2/sites/{site_id}/live/broadcast/secrets/{secret_id}/"
tags: ["broadcast live"]
---

# Delete a secret

`DELETE /v2/sites/{site_id}/live/broadcast/secrets/{secret_id}/`

## Request

- Base URL: `https://api.jwplayer.com`
- URL: `https://api.jwplayer.com/v2/sites/{site_id}/live/broadcast/secrets/{secret_id}/`
- Auth: API key in header `Authorization`

Delete a secret by its ID

Note: Secrets cannot be deleted while in use by active or scheduled LiveStreams.

## Path parameters

- `secret_id` string, required: Unique identifier for a resource
- `site_id` string, required: Unique identifier for a resource

## Response `200`

Secret deleted successfully

## Other responses

- `400`: Invalid JSON request body
- `404`: Resource with ID supplied does not exist in account and object namespace
- `500`: Internal server error

## Changes

- **2026-11-03** `9fad6bd5872e`: 2 info
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `404`

[Operation history](https://skmtc.dev/jwplayer/apis/management-api-v2/changes/v2/sites/:site_id/live/broadcast/secrets/:secret_id/delete.md)

---

[API](https://skmtc.dev/jwplayer/apis/management-api-v2.md) - [All operations](https://skmtc.dev/jwplayer/apis/management-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/jwplayer/apis/management-api-v2/revisions/9fad6bd5872e?raw)
