Passer au contenu principal
DELETE
https://{tenantDomain}/api/v2
/
hooks
/
{id}
Go
package example

import (
    client "github.com/auth0/go-auth0/management/client"
    option "github.com/auth0/go-auth0/management/option"
    context "context"
)

func do() () {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Hooks.Delete(
        context.TODO(),
        "id",
    )
}

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Paramètres de chemin

id
string
requis

ID of the hook to delete.

Pattern: ^[A-Za-z0-9-]*$

Réponse

Hook successfully deleted.