title | description | topics | contentType | useCase | v2 | ||||
---|---|---|---|---|---|---|---|---|---|
Delete Hook Secrets |
Learn how to delete Hook Secrets using the Dashboard and Management API. Hook Secrets may also be imported and exported using the Auth0 Deploy Command-Line Interface (CLI) tool. |
|
how-to |
extensibility-hooks |
true |
When you no longer need Hook Secrets for a given Hook, you can delete them using either the Dashboard or Management API.
Hook Secrets may also be imported and exported using the Deploy Command-Line Interface (CLI) Extension.
-
Navigate to the Hooks page in the Auth0 Dashboard, and click the pencil icon next to the Hook you want to edit.
-
In the Hook editor, click the wrench icon, and click Secrets.
-
Locate the Hook Secret you want to delete, click the trash can icon, and confirm.
- Make a
DELETE
call to the Delete Hook Secrets endpoint. Be sure to replaceHOOK_ID
,HOOK_SECRET_NAME
, andMGMT_API_ACCESS_TOKEN
placeholder values with your hook ID, your hook secret name(s), and Management API Access Token, respectively.
{
"method": "DELETE",
"url": "https://${account.namespace}/api/v2/hooks/HOOK_ID/secrets",
"headers": [
{ "name": "Authorization", "value": "Bearer MGMT_API_ACCESS_TOKEN" }
],
"postData": {
"mimeType": "application/json",
"text": "{ [ \"HOOK_SECRET_NAME\", \"HOOK_SECRET_NAME\" ] }"
}
}
Value | Description |
---|---|
HOOK_ID |
ID of the Hook for which you want to delete secrets. |
MGMT_API_ACCESS_TOKEN |
Access Tokens for the Management API with the scope delete:hooks . |
HOOK_SECRET_NAME |
Name(s) of the secret(s) you would like to delete from the specified Hook. This endpoint accepts an array of secret names to delete. |