Delete an encrypted volume in ONTAP
You can use the volume delete
command to delete an encrypted volume.
-
You must be a cluster administrator to perform this task.
-
The volume must be offline.
-
Delete an encrypted volume:
volume delete -vserver SVM_name -volume volume_name
Learn more about
volume delete
in the ONTAP command reference.The following command deletes an encrypted volume named
vol1
:cluster1::> volume delete -vserver vs1 -volume vol1
Enter
yes
when you are prompted to confirm deletion.The system deletes the encryption key for the volume after 24 hours.
Use
volume delete
with the-force true
option to delete a volume and destroy the corresponding encryption key immediately. This command requires advanced privileges. Learn more aboutvolume delete
in the ONTAP command reference.
You can use the volume recovery-queue
command to recover a deleted volume during the retention period after issuing the volume delete
command:
volume recovery-queue SVM_name -volume volume_name