code: def withdraw(self, uuid, organization, from_date=None, to_date=None):
          
          # Empty or None values for uuid and organizations are not allowed,
          # so do nothing
          if not uuid or not organization:
              return CMD_SUCCESS
  
          try:
              api.delete_enrollment(self.db, uuid, organization, from_date, to_date)
          except (NotFoundError, InvalidValueError) as e:
              self.error(str(e))
              return e.code
  
          return CMD_SUCCESS
docs: Withdraw a unique identity from an organization.
  
          This method removes all the enrollments between the unique identity,
          identified by <uuid>, and <organization>. Both entities must exist
          on the registry before being deleted.
  
          When a period of time is given using either <from_date> and <to_date>
          parameters, it will remove those enrollments which their periods fall
          between these two parameters. Default values for these dates
          are '1900-01-01' and '2100-01-01'.
  
          :param uuid: unique identifier
          :param organization: name of the organization
          :param from_date: date when the enrollment starts
          :param to_date: date when the enrollment ends