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