> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

> [!WARNING]
>
> **Hooks will reach end of life (EOL) on April 30, 2027.**
>
> * As of October 16, 2023, Hooks are no longer available in newly created tenants.
> * As of November 18, 2024, Hooks are read-only. Active Hooks still run, and you can enable or disable them and change their configuration values and secrets. You can't edit their code in the Dashboard, the Management API, or tools that use it, such as the Auth0 CLI, Deploy CLI, Terraform, and Agent Skills.
> * **After April 30, 2027, Hooks stop running and are removed.**

**Use Actions to extend Auth0:**

* To learn more about Actions, read [Understand How Auth0 Actions Work](/docs/docs/customize/actions/actions-overview).
* To migrate, read [Migrate from Hooks to Actions](/docs/docs/customize/actions/migrate/migrate-from-hooks-to-actions).

When you no longer need Hook Secrets for a given Hook, you can delete them using either the Dashboard or the Management API (Management API: A product to allow customers to perform administrative tasks.).

Hook Secrets can also be imported and exported using the [Deploy Command-Line Interface (CLI) tool](/docs/docs/deploy-monitor/deploy-cli-tool).

## Delete Hook Secrets using the Dashboard

1. Navigate to the [Hooks](https://manage.auth0.com/#/hooks) page in the [Auth0 Dashboard](https://manage.auth0.com/#/), and click the pencil icon next to the Hook you want to edit.
2. In the Hook editor, click the wrench icon, and click **Secrets**.
3. Locate the Hook Secret you want to delete, click the trash can icon, and click **Yes**.

## Delete Hook Secrets using the Management API

Make a `DELETE` call to the [Delete Hook Secrets endpoint](/docs/docs/api/management/v2/#!/Hooks/delete_secrets). Be sure to replace `HOOK_ID`, `HOOK_SECRET_NAME`, and `MGMT_API_ACCESS_TOKEN` placeholder values with your Hook ID, your Hook Secret name(s), and Management API access token (Access Token: Authorization credential, in the form of an opaque string or JWT, used to access an API.), respectively.

Using the Auth0 CLI? If you haven't already, [set up and authenticate your CLI session](/docs/docs/deploy-monitor/auth0-cli) before running this command.

| 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](/docs/docs/glossary?term=scope) `update:hooks`. To learn more, read [Management API Access Tokens](/docs/docs/secure/tokens/access-tokens/management-api-access-tokens). |
| `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. |
