Passer au contenu principal
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();

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

user_id
string
requis

ID of the user to get sessions for

Réponse

Session deletion request accepted.