This section provides information on how to delete an FSx for OpenZFS volume using the Amazon FSx console, the AWS CLI, and the Amazon FSx API.
When you delete a volume, the operation has the following results:
Deletes all data in the volume
Deletes all snapshots
Deletes all child volumes and their snapshots
Note
You cannot delete a root volume. You also cannot delete any volumes from
a client mount (for example, with a rm -r /fsx/vol1
command).
Before you delete a volume, make sure that no applications are accessing the data in the volume that you want to delete.
Open the Amazon FSx console at https://console.aws.amazon.com/fsx/
. In the left navigation pane, choose File systems, and then choose the FSx for OpenZFS file system that you want to delete a volume from.
Choose the Volumes tab.
Choose the volume that you want to delete.
For Actions, choose Delete volume.
In the delete dialog, do the following:
-
Acknowledge that you understand the results of deleting the volume.
-
Confirm the volume deletion by entering delete in the Confirm delete field.
-
Choose Delete volume(s).
To delete an FSx for OpenZFS volume, use the delete-volume CLI command (or the equivalent DeleteVolume API operation), as shown in the following example.
aws fsx delete-volume --volume-id fsxvol-0123456789abcdef1