AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the DeleteTags operation.

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 in the Billing and Cost Management User Guide.

This operation requires permissions for the elasticfilesystem:DeleteTags action.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.ElasticFileSystem.AmazonElasticFileSystemRequest
      Amazon.ElasticFileSystem.Model.DeleteTagsRequest

Namespace: Amazon.ElasticFileSystem.Model
Assembly: AWSSDK.ElasticFileSystem.dll
Version: 3.x.y.z

Syntax

C#
public class DeleteTagsRequest : AmazonElasticFileSystemRequest
         IAmazonWebServiceRequest

The DeleteTagsRequest type exposes the following members

Constructors

NameDescription
Public Method DeleteTagsRequest()

Properties

NameTypeDescription
Public Property FileSystemId System.String

Gets and sets the property FileSystemId.

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

Public Property TagKeys System.Collections.Generic.List<System.String>

Gets and sets the property TagKeys.

A list of tag keys to delete.

Examples

This operation deletes tags for an EFS file system.

To delete tags for an EFS file system


var client = new AmazonElasticFileSystemClient();
var response = client.DeleteTags(new DeleteTagsRequest 
{
    FileSystemId = "fs-01234567",
    TagKeys = new List<string> {
        "Name"
    }
});


            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5