DeleteTags - Amazon Elastic File System
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 AWS 服务入门


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

This operation requires permissions for the elasticfilesystem:DeleteTags action.

Request Syntax

POST /2015-02-01/delete-tags/FileSystemId HTTP/1.1 Content-type: application/json { "TagKeys": [ "string" ] }

URI Request Parameters

The request uses the following URI parameters.


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

Required: Yes

Request Body

The request accepts the following data in JSON format.


A list of tag keys to delete.

Type: Array of strings

Array Members: Minimum number of 1 item. Maximum number of 50 items.

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes

Response Syntax

HTTP/1.1 204

Response Elements

If the action is successful, the service sends back an HTTP 204 response with an empty HTTP body.



Returned if the request is malformed or contains an error such as an invalid parameter value or a missing required parameter.

HTTP Status Code: 400


Returned if the specified FileSystemId value doesn't exist in the requester's AWS account.

HTTP Status Code: 404


Returned if an error occurred on the server side.

HTTP Status Code: 500


Delete Tags from a File System

The following request deletes the tag key2 from the tag set associated with the file system.

Sample Request

POST /2015-02-01/delete-tags/fs-01234567 HTTP/1.1 Host: x-amz-date: 20140620T215123Z Authorization: <...> Content-Type: application/json Content-Length: 223 { "TagKeys":[ "key2" ] }

Sample Response

HTTP/1.1 204 No Content x-amzn-RequestId: 01234567-89ab-cdef-0123-456789abcdef

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: