:doc:`ECS <../../ecs>` / Client / untag_resource

**************
untag_resource
**************



.. py:method:: ECS.Client.untag_resource(**kwargs)

  

  Deletes specified tags from a resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UntagResource>`_  


  **Request Syntax**
  ::

    response = client.untag_resource(
        resourceArn='string',
        tagKeys=[
            'string',
        ]
    )
    
  :type resourceArn: string
  :param resourceArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the resource to delete tags from. Currently, the supported resources are Amazon ECS capacity providers, tasks, services, task definitions, clusters, and container instances.

    

  
  :type tagKeys: list
  :param tagKeys: **[REQUIRED]** 

    The keys of the tags to be removed.

    

  
    - *(string) --* 

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`ECS.Client.exceptions.ServerException`

  
  *   :py:class:`ECS.Client.exceptions.ClientException`

  
  *   :py:class:`ECS.Client.exceptions.ClusterNotFoundException`

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

  
  *   :py:class:`ECS.Client.exceptions.InvalidParameterException`

  

  **Examples**

  This example deletes the 'team' tag from the 'dev' cluster.
  ::

    response = client.untag_resource(
        resourceArn='arn:aws:ecs:region:aws_account_id:cluster/dev',
        tagKeys=[
            'team',
        ],
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResponseMetadata': {
            '...': '...',
        },
    }

  