---
title: "Delete a secret"
method: DELETE
path: "/webhooks/{subscriptionId}/secrets/{secretId}"
tags: ["Webhooks"]
---

# Delete a secret

`DELETE /webhooks/{subscriptionId}/secrets/{secretId}`

## Request

- Base URL: `https://api.dojo.tech`
- URL: `https://api.dojo.tech/webhooks/{subscriptionId}/secrets/{secretId}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/dojo/apis/dojo-api/docs/webhooks/:subscriptionId/secrets/:secretId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes a secret.

## Path parameters

- `subscriptionId` string, required
- `secretId` string, required

## Headers

- `version` string, date, required

## Response `204`

No Content

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found

---

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