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.

Note

Before deleting a file system, make sure there are no Amazon S3 access points attached to any volume. For information on how to list S3 access points attached to FSx for OpenZFS volumes, see Listing S3 access point attachments. For information on how to delete S3 access points, see Deleting an S3 access point attachment.

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 }'