:doc:`Organizations <../../organizations>` / Client / untag_resource

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



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

  

  Removes any tags with the specified keys from the specified resource.

   

  You can attach tags to the following resources in Organizations.

   

  
  * Amazon Web Services account
   
  * Organization root
   
  * Organizational unit (OU)
   
  * Policy (any type)
  

   

  You can only call this operation from the management account or a member account that is a delegated administrator.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/UntagResource>`_  


  **Request Syntax**
  ::

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

    The ID of the resource to remove a tag from.

     

    You can specify any of the following taggable resources.

     

    
    * Amazon Web Services account – specify the account ID number.
     
    * Organizational unit – specify the OU ID that begins with ``ou-`` and looks similar to: ``ou-1a2b-34uvwxyz``
     
    * Root – specify the root ID that begins with ``r-`` and looks similar to: ``r-1a2b``
     
    * Policy – specify the policy ID that begins with ``p-`` andlooks similar to: ``p-12abcdefg3``
    

    

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

    The list of keys for tags to remove from the specified resource.

    

  
    - *(string) --* 

    

  
  :returns: None
  **Exceptions**
  
  *   :py:class:`Organizations.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Organizations.Client.exceptions.ConcurrentModificationException`

  
  *   :py:class:`Organizations.Client.exceptions.AWSOrganizationsNotInUseException`

  
  *   :py:class:`Organizations.Client.exceptions.TargetNotFoundException`

  
  *   :py:class:`Organizations.Client.exceptions.ConstraintViolationException`

  
  *   :py:class:`Organizations.Client.exceptions.InvalidInputException`

  
  *   :py:class:`Organizations.Client.exceptions.ServiceException`

  
  *   :py:class:`Organizations.Client.exceptions.TooManyRequestsException`

  