Overview
Thedelete_organization_role function permanently deletes a custom organization role.
Function Signature
Parameters
The unique identifier of the organization
The unique identifier of the role to delete
Return Value
ReturnsResult<()> indicating success or failure.
Basic Usage
Error Handling
Important Notes
- Cannot delete built-in system roles (owner, admin, member)
- Cannot delete roles that are currently assigned to members
- This operation is irreversible
Rate Limits
- Delete operations: 20 requests per minute
- Burst limit: 5 requests per second
Related Functions
- create_organization_role - Create custom role
- update_organization_role - Update role
- fetch_organization_roles - Get available roles
