Roles: delete
roles_deleteDelete a role by ID to remove its granted permissions. Check users_list first because roles held by users or the built-in admin role cannot be deleted.
Instructions
Delete a role by ID. Removes a role and the permissions it grants. The API refuses while any user still holds the role, and the built-in admin role can't be deleted, so check users_list for its holders first. To take away only some access, use roles_permissions_remove instead. It changes or deletes existing data, so check with the user before running it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Role ID to delete. Find it with roles_list. |