Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Deleting an Amazon FSx for OpenZFS file system

Focus mode
Deleting an Amazon FSx for OpenZFS file system - FSx for OpenZFS

This section contains instructions on how to delete a file system using the AWS CLI and the Amazon FSx API. For information on how to delete a file system using the Amazon FSx console, see Step 3: Clean up your resources.

Deleting a file system

To delete a file system (AWS CLI and Amazon FSx API)
  • Use the delete-file-system CLI command or the DeleteFileSystem API operation. The following is an example using the CLI to delete

    Note

    To delete a file system which still has child volumes present, you must include DELETE_CHILD_VOLUMES_AND_SNAPSHOTS in the Options property, otherwise the delete request will fail.

    aws fsx delete-file-system \ --file-system-id fs-1234567890abcdef0 --open-zfs-configuration '{ "FinalBackupTags": [ { "Key": "string", "Value": "string" } ], "Options": [ "DELETE_CHILD_VOLUMES_AND_SNAPSHOTS" ], "SkipFinalBackup": boolean }'

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.