A virtual volume can only be removed when its associated directory is empty. For directories that are not empty, virtual volume removal commands provide a
--delete-contents option to empty the directories before removing them.
- If the virtual volume is not empty, use the --delete-contents CLI option to remove its contents before removal:
- virtual-volume remove [--delete-contents] <file-system> <name>
- To remove all virtual volumes of a given file system, issue the following command. If some volumes are not-empty, use the --delete contents option:
- virtual-volume removeall [--delete-contents] <file-system>
Refer to CLI man pages for more information.
You can delete an empty virtual volume in the NAS Manager.