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

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.

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