Management API
TypeScript
import { ManagementClient } from "auth0"; async function main() { const client = new ManagementClient({ token: "<token>", }); await client.rules.delete("id"); } main();
Delete a rule.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the rule to delete.
^rul_[A-Za-z0-9]{16}$
Rule successfully deleted.