package example
import (
context "context"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
client.Users.AuthenticationMethods.Delete(
context.TODO(),
"id",
"authentication_method_id",
)
}Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API.
package example
import (
context "context"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
client.Users.AuthenticationMethods.Delete(
context.TODO(),
"id",
"authentication_method_id",
)
}Documentation Index
Fetch the complete documentation index at: https://auth0-chore-sdk-version-update-20260521.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the user in question.
The ID of the authentication method to delete.
Authentication method successfully deleted.
このページは役に立ちましたか?