code: def delete_identity(self, identity):
          
          if isinstance(identity, zobjects.Identity):
              self.request(
                  'DeleteIdentity', {'identity': identity.to_selector()})
          else:
              self.request('DeleteIdentity', {'identity': {'name': identity}})
docs: Delete an identity from its name or id
  
          :param: a zobjects.Identity object with name or id defined or a string
          of the identity's name