Management API
TypeScript
import { ManagementClient } from "auth0"; async function main() { const client = new ManagementClient({ token: "<token>", }); await client.resourceServers.delete("id"); } main();
Delete an existing API by ID. For more information, read API Settings.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID or the audience of the resource server to delete.
Resource server successfully deleted.