def METHOD_NAME(sender, instance, **kwargs):
    """
    Delete role assignments linked user to deleted WorkspaceUser.
    """
    from .models import RoleAssignment
    user_id = instance.user_id
    workspace_id = instance.workspace_id
    user_ct = ContentType.objects.get_for_model(User)
    RoleAssignment.objects.filter(
        subject_id=user_id, subject_type=user_ct, workspace_id=workspace_id
    ).delete()