:doc:`ServiceDiscovery <../../servicediscovery>` / Client / untag_resource

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



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

  

  Removes one or more tags from the specified resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/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 that you want to retrieve tags for.

    

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

    The tag keys to remove from the specified resource.

    

  
    - *(string) --* 

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`ServiceDiscovery.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`ServiceDiscovery.Client.exceptions.InvalidInput`

  

  **Examples**

  This example removes the "Department" and "Project" tags from a resource.
  ::

    response = client.untag_resource(
        ResourceARN='arn:aws:servicediscovery:us-east-1:123456789012:namespace/ns-ylexjili4cdxy3xm',
        TagKeys=[
            'Project',
            'Department',
        ],
    )
    
    print(response)

  
  Expected Output:
  ::

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

  