Show examples in:
Delete a role

Returns

Returns a role resource object.

Examples

Example Basic example
import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const roleId = '34';
const role = await client.roles.destroy(roleId);
console.log(role);
}
run();