:doc:`StorageGateway <../../storagegateway>` / Client / remove_tags_from_resource

*************************
remove_tags_from_resource
*************************



.. py:method:: StorageGateway.Client.remove_tags_from_resource(**kwargs)

  

  Removes one or more tags from the specified resource. This operation is supported in storage gateways of all types.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RemoveTagsFromResource>`_  


  **Request Syntax**
  ::

    response = client.remove_tags_from_resource(
        ResourceARN='string',
        TagKeys=[
            'string',
        ]
    )
    
  :type ResourceARN: string
  :param ResourceARN: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the resource you want to remove the tags from.

    

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

    The keys of the tags you want to remove from the specified resource. A tag is composed of a key-value pair.

    

  
    - *(string) --* 

    

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

    
    ::

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

    

    - *(dict) --* 

      RemoveTagsFromResourceOutput

      
      

      - **ResourceARN** *(string) --* 

        The Amazon Resource Name (ARN) of the resource that the tags were removed from.

        
  
  **Exceptions**
  
  *   :py:class:`StorageGateway.Client.exceptions.InvalidGatewayRequestException`

  
  *   :py:class:`StorageGateway.Client.exceptions.InternalServerError`

  

  **Examples**

  Lists the iSCSI stored volumes of a gateway. Removes one or more tags from the specified resource.
  ::

    response = client.remove_tags_from_resource(
        ResourceARN='arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B',
        TagKeys=[
            'Dev Gatgeway Region',
            'East Coast',
        ],
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResourceARN': 'arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B',
        'ResponseMetadata': {
            '...': '...',
        },
    }

  