After changing ESXi boot LUNs from Dell SAN to NetApp the original boot LUN is unable to be detached from the ESXi hosts, with an error that it is in use.
ESXi host filesystem command shows Bootbank 1 and 2 active from the old LUN.
In the UI the old LUN appears under storage devices with Datastore "Not Consumed" and Operational State as "Detached".
ESXi (all versions) booting from SAN
ESXi hosts retained references to old boot LUNs in their storage configuration. Occasionally ESXi may retain previous storage device configuration until explicitly instructed to remove.
esxcli storage core device set --state=off -d <naa of LUN to detach>esxcli storage core device remove -d <naa of LUN to detach>esxcli storage core adapter rescan --all and esxcli storage core refresh