:doc:`SageMaker <../../sagemaker>` / Client / delete_pipeline

***************
delete_pipeline
***************



.. py:method:: SageMaker.Client.delete_pipeline(**kwargs)

  

  Deletes a pipeline if there are no running instances of the pipeline. To delete a pipeline, you must stop all running instances of the pipeline using the ``StopPipelineExecution`` API. When you delete a pipeline, all instances of the pipeline are deleted.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeletePipeline>`_  


  **Request Syntax**
  ::

    response = client.delete_pipeline(
        PipelineName='string',
        ClientRequestToken='string'
    )
    
  :type PipelineName: string
  :param PipelineName: **[REQUIRED]** 

    The name of the pipeline to delete.

    

  
  :type ClientRequestToken: string
  :param ClientRequestToken: **[REQUIRED]** 

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An idempotent operation completes no more than one time.

    This field is autopopulated if not provided.

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'PipelineArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **PipelineArn** *(string) --* 

        The Amazon Resource Name (ARN) of the pipeline to delete.

        
  
  **Exceptions**
  
  *   :py:class:`SageMaker.Client.exceptions.ConflictException`

  
  *   :py:class:`SageMaker.Client.exceptions.ResourceNotFound`

  