Deleting an Amazon FSx for OpenZFS file system - FSx for OpenZFS
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Deleting an Amazon FSx for OpenZFS file system

This section contains instructions on how to delete a file system using the Amazon 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 (Amazon 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 }'