:doc:`EFS <../../efs>` / Client / delete_tags

***********
delete_tags
***********



.. py:method:: EFS.Client.delete_tags(**kwargs)

  

  .. note::

    

    DEPRECATED - ``DeleteTags`` is deprecated and not maintained. To remove tags from EFS resources, use the API action.

    

   

  Deletes the specified tags from a file system. If the ``DeleteTags`` request includes a tag key that doesn't exist, Amazon EFS ignores it and doesn't cause an error. For more information about tags and related restrictions, see `Tag restrictions <https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html>`__ in the *Billing and Cost Management User Guide*.

   

  This operation requires permissions for the ``elasticfilesystem:DeleteTags`` action.

  

  .. 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/elasticfilesystem-2015-02-01/DeleteTags>`_  


  **Request Syntax**
  ::

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

    The ID of the file system whose tags you want to delete (String).

    

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

    A list of tag keys to delete.

    

  
    - *(string) --* 

    

  
  :returns: None
  **Exceptions**
  
  *   :py:class:`EFS.Client.exceptions.BadRequest`

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

  
  *   :py:class:`EFS.Client.exceptions.FileSystemNotFound`

  

  **Examples**

  This operation deletes tags for an EFS file system.
  ::

    response = client.delete_tags(
        FileSystemId='fs-01234567',
        TagKeys=[
            'Name',
        ],
    )
    
    print(response)

  
  Expected Output:
  ::

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

  