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.Users.Sessions.Delete( context.TODO(), "user_id", ) }
Delete all sessions for a user.
Documentation IndexFetch the complete documentation index at: https://docs-staging.auth0-mintlify.app/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs-staging.auth0-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.
Bearer <token>
<token>
ID of the user to get sessions for
Session deletion request accepted.
Was this page helpful?