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

**********************
delete_trial_component
**********************



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

  

  Deletes the specified trial component. A trial component must be disassociated from all trials before the trial component can be deleted. To disassociate a trial component from a trial, call the `DisassociateTrialComponent <https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DisassociateTrialComponent.html>`__ API.

  

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


  **Request Syntax**
  ::

    response = client.delete_trial_component(
        TrialComponentName='string'
    )
    
  :type TrialComponentName: string
  :param TrialComponentName: **[REQUIRED]** 

    The name of the component to delete.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **TrialComponentArn** *(string) --* 

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

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

  