Skip to main content

roleDelete

Permanently delete a role from the authorization system.

Removes the role and all associated permissions. This action cannot be undone and will affect any users or systems that depend on this role for access control.

Possible errors:

  • ROLE_NOT_FOUND_ERROR: Role with the specified ID does not exist
  • ROLE_DELETE_ERROR: Failed to delete the role

AUTH: Role=[role.OWNER]

roleDelete(
id: ID!
): Boolean!

Arguments

roleDelete.id ● ID! non-null scalar

Unique identifier of the role to delete.

Must be a valid UUID format representing an existing role in the system.

Type

Boolean scalar

The Boolean scalar type represents true or false.