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

************
delete_trial
************



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

  

  Deletes the specified trial. All trial components that make up the trial must be deleted first. Use the `DescribeTrialComponent <https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DescribeTrialComponent.html>`__ API to get the list of trial components.

  

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


  **Request Syntax**
  ::

    response = client.delete_trial(
        TrialName='string'
    )
    
  :type TrialName: string
  :param TrialName: **[REQUIRED]** 

    The name of the trial to delete.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **TrialArn** *(string) --* 

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

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

  