Skip to main content
DELETE
https://{tenantDomain}/api/v2
/
users
/
{user_id}
/
sessions
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.Users.Sessions.Delete(
        context.TODO(),
        "user_id",
    )
}

Authorizations

Authorization
string
header
required

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

Path Parameters

user_id
string
required

ID of the user to get sessions for

Response

Session deletion request accepted.