Skip to main content
DELETE
/
users
/
{user_id}
/
sessions
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.users.sessions.delete("user_id");
}
main();

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.