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
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
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.