code: def create(cls, name, servers=None, time_range='yesterday', all_logs=False,
                 filter_for_delete=None, comment=None, **kwargs):
          
          if not servers:
              servers = [svr.href for svr in ManagementServer.objects.all()]
              servers.extend([svr.href for svr in LogServer.objects.all()])
          else:
              servers = [svr.href for svr in servers]
          
          filter_for_delete = filter_for_delete.href if filter_for_delete else \
              FilterExpression('Match All').href
          
          json = {
              'name': name,
              'resources': servers,
              'time_limit_type': time_range,
              'start_time': 0,
              'end_time': 0,
              'file_format': 'unknown',
              'filter_for_delete': filter_for_delete,
              'comment': comment}  
          
          json.update(**log_target_types(all_logs, **kwargs))
          
          return ElementCreator(cls, json)
docs: Create a new delete log task. Provide True to all_logs to delete
          all log types. Otherwise provide kwargs to specify each log by
          type of interest.
          
          :param str name: name for this task
          :param servers: servers to back up. Servers must be instances of
              management servers or log servers. If no value is provided, all
              servers are backed up.
          :type servers: list(ManagementServer or LogServer)
          :param str time_range: specify a time range for the deletion. Valid
              options are 'yesterday', 'last_full_week_sun_sat',
              'last_full_week_mon_sun', 'last_full_month' (default 'yesterday')
          :param FilterExpression filter_for_delete: optional filter for deleting.
              (default: FilterExpression('Match All')
          :param bool all_logs: if True, all log types will be deleted. If this
              is True, kwargs are ignored (default: False)
          :param kwargs: see :func:`~log_target_types` for keyword
              arguments and default values.
          :raises ElementNotFound: specified servers were not found
          :raises CreateElementFailed: failure to create the task
          :return: the task
          :rtype: DeleteLogTask