If the target port that you want to remove is the last path to the device, unmount the file systems or export the ZFS pools for all logical units used by the host on the storage device.
Unconfigure the target port from your system by using the cfgadm -c unconfigure target-port
command. For example:
# cfgadm -c unconfigure c7::10000000c9c07a6c
Note -
The changes made by the cfgadm -c unconfigure command do not persist after a reboot.
(Optional) To make the devices permanently unavailable to the system, you can use switch zoning or LUN masking on the storage device.