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

****************************
disassociate_trial_component
****************************



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

  

  Disassociates a trial component from a trial. This doesn't effect other trials the component is associated with. Before you can delete a component, you must disassociate the component from all trials it is associated with. To associate a trial component with a trial, call the `AssociateTrialComponent <https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AssociateTrialComponent.html>`__ API.

   

  To get a list of the trials a component is associated with, use the `Search <https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_Search.html>`__ API. Specify ``ExperimentTrialComponent`` for the ``Resource`` parameter. The list appears in the response under ``Results.TrialComponent.Parents``.

  

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


  **Request Syntax**
  ::

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

    The name of the component to disassociate from the trial.

    

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

    The name of the trial to disassociate from.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        The Amazon Resource Name (ARN) of the trial component.

        
      

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

        The Amazon Resource Name (ARN) of the trial.

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

  