Skip to main content
DELETE
/
grants
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.userGrants.deleteByUserId({
        userId: "user_id",
    });
}
main();

Authorizations

Authorization
string
header
required

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

Query Parameters

user_id
string
required

user_id of the grant to delete.

Response

User grant successfully deleted.