code: def _delLocalOwnerRole(self, username):
          
          parent = self.getParent()
          if parent.portal_type == "Client":
              parent.manage_delLocalRoles([username])
              # reindex object security
              self._recursive_reindex_object_security(parent)
docs: Remove local owner role from parent object