Delete a custom role. Members and tokens that held it keep their built-in role, groups keep their built-in role or lose the role entirely. Every permission of the role must be a permission of the caller. Needs members:manage.
Parameters
Organization ID (UUID)
Custom role ID (UUID)
Responses
No Content
Bad Request: the role ID is not a UUID.
Forbidden: the caller lacks members:manage, or the role names permissions the caller does not have (details.reason=role_exceeds_caller, details.missing_permissions lists them).
Not Found: the organization, role or group does not exist or belongs to another organization.
Conflict (resource.conflict, details.error_code organization_administrator_required): the change would leave the organization without a person who holds every permission and can sign in.
Common errors: 401 413 429 503 504. They mean the same for every operation, see Errors.