Deletes a file system.

Description

  • Before you delete a file system, you must remove all the mount targets from the file system.
  • After a file system is deleted, the data on the file system cannot be restored. Proceed with caution.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteFileSystem

The operation that you want to perform.

Set the value to DeleteFileSystem.

FileSystemId String Yes 1ca404****

The ID of the file system that you want to delete.

Response parameters

Parameter Type Example Description
RequestId String 9E15E394-38A6-457A-A62A-D9797C9A****

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=DeleteFileSystem
&FileSystemId=1ca404****
&<Common request parameters>

Sample success responses

XML format

<DeleteFileSystemResponse>
      <RequestId>9E15E394-38A6-457A-A62A-D9797C9A****</RequestId>
</DeleteFileSystemResponse>

JSON format

{
    "DeleteFileSystemResponse": {
        "RequestId": "9E15E394-38A6-457A-A62A-D9797C9A****"
    }
}

Error codes

HttpCode Error code Error message Description
400 OperationDenied.LifecyclePolicyAssociated The specified FileSystem has LifecyclePolicy associated. The error message returned because a lifecycle management policy has been configured for the file system. Before you delete the file system, you must remove the lifecycle management policy from the file system.

For a list of error codes, visit the API Error Center.