.. _Deleting Virtuozzo Infrastructure Platform iSCSI Targets:

Deleting Virtuozzo Infrastructure Platform iSCSI Targets
--------------------------------------------------------

You can delete Virtuozzo Infrastructure Platform iSCSI targets with the vstorage-iscsi delete command. Deleting a Virtuozzo Infrastructure Platform iSCSI target, you will also delete all the LUNs within it.

To delete a Virtuozzo Infrastructure Platform iSCSI target, do the following:

1. Make sure the target is stopped (for more details, see :ref:`Stopping Virtuozzo Infrastructure Platform 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
