text: import json
  
  from lib.k8s import K8sClient
  
  
  class deleteExtensionsV1beta1CollectionNamespacedIngress(K8sClient):
  
      def run(
              self,
              namespace,
              fieldSelector=None,
              labelSelector=None,
              resourceVersion=None,
              timeoutSeconds=None,
              watch=None,
              pretty=None,
              config_override=None):
  
          ret = False
  
          args = {}
          args['config_override'] = {}
          args['params'] = {}
  
          if config_override is not None:
              args['config_override'] = config_override
  
          if namespace is not None:
              args['namespace'] = namespace
          else:
              return (False, "namespace is a required parameter")
          if fieldSelector is not None:
              args['params'].update({'fieldSelector': fieldSelector})
          if labelSelector is not None:
              args['params'].update({'labelSelector': labelSelector})
          if resourceVersion is not None:
              args['params'].update({'resourceVersion': resourceVersion})
          if timeoutSeconds is not None:
              args['params'].update({'timeoutSeconds': timeoutSeconds})
          if watch is not None:
              args['params'].update({'watch': watch})
          if pretty is not None:
              args['params'].update({'pretty': pretty})
          if 'body' in args:
              args['data'] = args['body']
              args.pop('body')
          args['headers'] = {'Content-type': u'application/json', 'Accept': u'application/json, application/yaml, application/vnd.kubernetes.protobuf'}  # noqa pylint: disable=line-too-long
          args['url'] = "apis/extensions/v1beta1/namespaces/{namespace}/ingresses".format(  # noqa pylint: disable=line-too-long
              namespace=namespace)
          args['method'] = "delete"
  
          self.addArgs(**args)
          self.makeRequest()
  
          myresp = {}
          myresp['status_code'] = self.resp.status_code
          try:
              myresp['data'] = json.loads(self.resp.content.rstrip())
          except ValueError:
              myresp['data'] = self.resp.content
  
          if myresp['status_code'] >= 200 and myresp['status_code'] <= 299:
              ret = True
  
          return (ret, myresp)
  