v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1441397379.2 KB

Deletes a file system. After deletion, the file system no longer exists, and its data is gone. Any existing automatic backups and snapshots are also deleted.

To delete an Amazon FSx for NetApp ONTAP file system, first delete all the volumes and storage virtual machines (SVMs) on the file system. Then provide a FileSystemId value to the DeleFileSystem operation.

By default, when you delete an Amazon FSx for Windows File Server file system, a final backup is created upon deletion. This final backup isn't subject to the file system's retention policy, and must be manually deleted.

The DeleteFileSystem operation returns while the file system has the DELETING status. You can check the file system deletion status by calling the DescribeFileSystems operation, which returns a list of file systems in your account. If you pass the file system ID for a deleted file system, the DescribeFileSystems operation returns a FileSystemNotFound error.

If a data repository task is in a PENDING or EXECUTING state, deleting an Amazon FSx for Lustre file system will fail with an HTTP status code 400 (Bad Request).

The data in a deleted file system is also deleted and can't be recovered by any means.

post/#X-Amz-Target=AWSSimbaAPIService_v20180301.DeleteFileSystem

Headers

X-Amz-Target'AWSSimbaAPIService_v20180301.DeleteFileSystem' required

Request body

FileSystemIdstring required

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

ClientRequestTokenstring

A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent deletion. This token is automatically filled on your behalf when using the Command Line Interface (CLI) or an Amazon Web Services SDK.

Response

Success

FileSystemIdstring

The ID of the file system that's being deleted.

Lifecycle'AVAILABLE' | 'CREATING' | 'FAILED' | 'DELETING' | 'MISCONFIGURED' | 'UPDATING' | 'MISCONFIGURED_UNAVAILABLE'

The file system lifecycle for the deletion request. If the <code>DeleteFileSystem</code> operation is successful, this status is <code>DELETING</code>.

Example response

{
  "FileSystemId": "fs-0498eed5fe91001ec",
  "Lifecycle": "DELETING"
}