:doc:`CloudWatchLogs <../../logs>` / Client / untag_log_group

***************
untag_log_group
***************



.. py:method:: CloudWatchLogs.Client.untag_log_group(**kwargs)

  

  .. warning::

    

    The UntagLogGroup operation is on the path to deprecation. We recommend that you use `UntagResource <https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html>`__ instead.

     

   

  Removes the specified tags from the specified log group.

   

  To list the tags for a log group, use `ListTagsForResource <https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html>`__. To add tags, use `TagResource <https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html>`__.

   

  When using IAM policies to control tag management for CloudWatch Logs log groups, the condition keys ``aws:Resource/key-name`` and ``aws:TagKeys`` cannot be used to restrict which tags users can assign.

  

  .. danger::

        This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.


  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagLogGroup>`_  


  **Request Syntax**
  ::

    response = client.untag_log_group(
        logGroupName='string',
        tags=[
            'string',
        ]
    )
    
  :type logGroupName: string
  :param logGroupName: **[REQUIRED]** 

    The name of the log group.

    

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

    The tag keys. The corresponding tags are removed from the log group.

    

  
    - *(string) --* 

    

  
  :returns: None
  **Exceptions**
  
  *   :py:class:`CloudWatchLogs.Client.exceptions.ResourceNotFoundException`

  