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

*****************
delete_experiment
*****************



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

  

  Deletes an SageMaker experiment. All trials associated with the experiment must be deleted first. Use the `ListTrials <https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ListTrials.html>`__ API to get a list of the trials associated with the experiment.

  

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


  **Request Syntax**
  ::

    response = client.delete_experiment(
        ExperimentName='string'
    )
    
  :type ExperimentName: string
  :param ExperimentName: **[REQUIRED]** 

    The name of the experiment to delete.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **ExperimentArn** *(string) --* 

        The Amazon Resource Name (ARN) of the experiment that is being deleted.

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

  