Deleting an Amazon FSx for OpenZFS file system
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.
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.
Topics
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 theOptions
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 }'