2.6. Deleting iSCSI Targets¶
You can delete iSCSI targets with the vstorage-iscsi delete command. Deleting an iSCSI target, you will also delete all the LUNs within it.
To delete an iSCSI target, do the following:
Make sure the target is stopped (for more details, see Stopping iSCSI Targets).
vstorage-iscsi deletecommand with the target name as the option. For example:
# vstorage-iscsi delete -t iqn.2014-04.com.vstorage:test1
To delete a stopped iSCSI target registered on a different host, add the
--force option to the
vstorage-iscsi delete command. For example:
# vstorage-iscsi delete -t iqn.2014-04.com.vstorage:test1 --force