Directus / @directus/sdk / rest / deleteRole
Function: deleteRole() ​
deleteRole<
Schema>(key):RestCommand<void,Schema>
Defined in: rest/commands/delete/roles.ts:30
Delete an existing role.
Type Parameters ​
• Schema
Parameters ​
key ​
DirectusRole<Schema>["id"]
Returns ​
RestCommand<void, Schema>
Throws ​
Will throw if key is empty