:doc:`MachineLearning <../../machinelearning>` / Client / delete_tags

***********
delete_tags
***********



.. py:method:: MachineLearning.Client.delete_tags(**kwargs)

  

  Deletes the specified tags associated with an ML object. After this operation is complete, you can't recover deleted tags.

   

  If you specify a tag that doesn't exist, Amazon ML ignores it.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/machinelearning-2014-12-12/DeleteTags>`_  


  **Request Syntax**
  ::

    response = client.delete_tags(
        TagKeys=[
            'string',
        ],
        ResourceId='string',
        ResourceType='BatchPrediction'|'DataSource'|'Evaluation'|'MLModel'
    )
    
  :type TagKeys: list
  :param TagKeys: **[REQUIRED]** 

    One or more tags to delete.

    

  
    - *(string) --* 

    

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

    The ID of the tagged ML object. For example, ``exampleModelId``.

    

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

    The type of the tagged ML object.

    

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

    
    ::

      {
          'ResourceId': 'string',
          'ResourceType': 'BatchPrediction'|'DataSource'|'Evaluation'|'MLModel'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Amazon ML returns the following elements.

      
      

      - **ResourceId** *(string) --* 

        The ID of the ML object from which tags were deleted.

        
      

      - **ResourceType** *(string) --* 

        The type of the ML object from which tags were deleted.

        
  
  **Exceptions**
  
  *   :py:class:`MachineLearning.Client.exceptions.InvalidInputException`

  
  *   :py:class:`MachineLearning.Client.exceptions.InvalidTagException`

  
  *   :py:class:`MachineLearning.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`MachineLearning.Client.exceptions.InternalServerException`

  