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:

  1. Make sure the target is stopped (for more details, see Stopping iSCSI Targets).

  2. Run the vstorage-iscsi delete command 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