Passer au contenu principal
DELETE
/
grants
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.userGrants.deleteByUserId({
        userId: "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 requête

user_id
string
requis

user_id of the grant to delete.

Réponse

User grant successfully deleted.