Deleting a Project (CLI)

You can delete a project with file retention if the project is empty and has an unexpired grace period. If retention is set on an empty project and the grace period is met or not set, you cannot delete the project until the expiration period has been met. A non-empty project cannot be deleted until all retained filesystems within the project have an expired retention value. For more information, see File Retention Management.

Caution:

Deleting a project destroys all data in the project by deleting its filesystems and LUNs.
  1. Go to shares.
    hostname:> shares
  2. Enter destroy and a project name.
    hostname:shares> destroy home
  3. Enter Y.
    This will destroy all data in "home"! Are you sure? (Y/N) 
    hostname:shares> Y
  4. 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.