When there are active sessions on the targets discovered by an iSCSI discovery sendtarget address, you see these symptoms:
VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
This is a known issue affecting VMware ESXi 7.0 Update 1 and later versions.
Currently, there is no resolution.
Workaround:
To work around this issue, remove the active sessions before removing the discovery address.
For removing active session.
esxcli iscsi session list <iqn> : iqn target name from result in 1esxcli iscsi session remove --name=<iqn> --adapter=<iscsi_adapter>--force flag. This removes the active sessions as well as the discovered targets.For additional information please see How to remove iSCSI targets on ESXi