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