Deletes a file system.

Description

  • Before you delete a file system, you must delete all mount targets of the file system.
  • Before you delete a file system, make sure that no lifecycle policy is created for 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.

  • Sample ID of a General-purpose NAS file system: 31a8e4****.
  • The IDs of Extreme NAS file systems must start with extreme-. Example: extreme-0015****.
  • The IDs of Cloud Parallel File Storage (CPFS) file systems must start with cpfs-. Example: cpfs-00cb6fa094ca****. The value is available only on the Alibaba Cloud China site (aliyun.com).

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

HTTP/1.1 200 OK
Content-Type:application/xml

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

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

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

Error codes

HTTP status code Error code Error message Description
400 OperationDenied.LifecyclePolicyAssociated The specified FileSystem has LifecyclePolicy associated. The error message returned because a lifecycle policy is configured for the file system. Before you delete the file system, you must delete the lifecycle policy from the file system.
400 OperationDenied.LifecycleRecycleBinTieringJobAssociated The specified FileSystem has LifecycleRecycleBinTieringJob associated. The error message returned because the file system is associated with a background task of the recycle bin.

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