Management API
Go
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.Guardian.Enrollments.Delete( context.TODO(), "id", ) }
Remove a specific multi-factor authentication (MFA) enrollment from a user’s account. This allows the user to re-enroll with MFA. For more information, review Reset User Multi-Factor Authentication and Recovery Codes.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the enrollment to be deleted.
Enrollment successfully deleted.
Was this page helpful?