Step by step Decommissioning on VPLEX using CLI

 1. Check how many clusters

VPlexcli:/> ls /clusters

2. LIST ALL LUNS(VIRTUAL VOLUME NAMES), VIEW INITIATORS

ls -t /clusters/cluster-1/exports/storage-views/<sv_name>

OR

ls -t **/storage-views/<sv_name>::virtual-volumes

3. Get mappings (DRILL DOWN)

drill-down --virtual-volume  <virtual_volume_name>

4. REMOVE THE VIRTUAL VOLUMES FROM STORAGE VIEW

export storage-view removevirtualvolume -v <sv_name> -o <virtual_volume_name>
(add comma for multiple VVs)

5. REMOVE INITIATOR PORTS FROM STORAGE VIEW

export storage-view removeinitiatorport -v  <sv_name> <initiator_name1>,<initiator_name2>

6. UNREGISTER INITIATOR PORTS

export initiator-port unregister -i <initiator_name1>

7. DELETE STORAGE VIEW

export storage-view destroy -v <sv_name>

8. TEARDOWN COMMAND

Teardown -command dismantles vplex storage objects, virtual volume, extent, and device, down to the storage-volume level.

advadm dismantle -v <virtual_volume_name>

9. UNCLAIM STORAGE VOLUME

storage-volume unclaim -d <storage_volume_name>
=========================

Instead of running teardown, below commands can be used to individually destroy Virtual volume, Device and Extent respectevely.
-----------------------
Destroy VV
virtual-volume destroy -v Device_name_Virtual_vol

DESTROY DEVICE
local-device destroy -d Device_name_Virtual_dev

DESTROY EXTENT
extent destroy -s Device_name_Virtual_ext
-----------------------