Deleting a Filesystem or LUN (CLI)

If file retention is set, review section File Retention Management. A filesystem containing unexpired files with privileged file retention can be deleted. A filesystem containing unexpired files with mandatory file retention cannot be deleted until retention has expired for all of its retained files.

Caution:

Deleting a filesystem or LUN destroys all data in the share and cannot be undone.
  1. Go to shares.
    hostname> shares
  2. Enter select and the project name that contains the filesystem or LUN.
    hostname:shares> select default
  3. Enter select and the filesystem or LUN name.
    hostname:shares default>select fs-1
  4. Enter destroy.
    hostname:shares default/fs-1> destroy
    This will destroy all data in "fs-1"! Are you sure? (Y/N)
  5. Enter Y.
    hostname:shares default> Y
  6. To monitor the amount of space to be reclaimed in the storage pool if deferred update Asynchronous Dataset Deletion (OS8.7.0 or later) has been accepted, enter cd ../.. to return to the root context. Enter configuration storage, and enter ls to list storage pool properties. For the appropriate pool, note the amount of space for property async_destroy_reclaim_space.

    When the operation has completed, 0 (zero) is displayed.