Deleting a volume - FSx for ONTAP

Deleting a volume

You can delete an FSx for ONTAP volume using the Amazon FSx console, the AWS CLI, and the Amazon FSx API, in addition to the NetApp ONTAP command line interface (CLI) and REST API.

Important

You can only delete volumes using the Amazon FSx console, API, or CLI if the volume has Amazon FSx backups enabled.

Important

When you delete a volume by using the Amazon FSx console, you have the option to take a final backup of the volume. You can create new volumes from backups. We recommend that you choose to take a final backup as a best practice. If you find you don't need it after a certain period of time, you can delete this and other manually created volume backups. When you delete a volume by using the delete-volume CLI command, Amazon FSx takes a final backup by default.

Before you delete a volume, make sure that no applications are accessing the data in the volume that you want to delete.

  1. Open the Amazon FSx console at https://console.aws.amazon.com/fsx/.

  2. In the left navigation pane, choose File systems, and then choose the ONTAP file system that you want to delete a volume from.

  3. Choose the Volumes tab.

  4. Choose the volume that you want to delete.

  5. For Actions, choose Delete volume.

  6. In the confirmation dialog box, for Create final backup, you have two options:

    • Choose Yes to take a final backup of the volume. The name of the final backup is displayed.

    • Choose No if you don't want a final backup of the volume. You are asked to acknowledge that once the volume is deleted, automatic backups are no longer available.

  7. Confirm the volume deletion by entering delete in the Confirm delete field.

  8. Choose Delete volume(s).

  • To delete an FSx for ONTAP 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 fsvol-1234567890abcde