code: def delete_pipeline(app='', pipeline_name=''):
      
      safe_pipeline_name = normalize_pipeline_name(name=pipeline_name)
  
      LOG.warning('Deleting Pipeline: %s', safe_pipeline_name)
  
      url = '{host}/pipelines/{app}/{pipeline}'.format(host=API_URL, app=app, pipeline=safe_pipeline_name)
      response = requests.delete(url, verify=GATE_CA_BUNDLE, cert=GATE_CLIENT_CERT)
  
      if not response.ok:
          LOG.debug('Delete response code: %d', response.status_code)
          if response.status_code == requests.status_codes.codes['method_not_allowed']:
              raise SpinnakerPipelineDeletionFailed('Failed to delete "{0}" from "{1}", '
                                                    'possibly invalid Pipeline name.'.format(safe_pipeline_name, app))
          else:
              LOG.debug('Pipeline missing, no delete required.')
  
      LOG.debug('Deleted "%s" Pipeline response:\n%s', safe_pipeline_name, response.text)
  
      return response.text
docs: Delete _pipeline_name_ from _app_.