This article explains precautions for discarding parts of ESXi hosts from an environment.
VMware vSphere ESXi
VMware vSphere ESX
It is recommended to remove all VMs on the ESXi hosts being decommissioned by using [Delete from Disk].
Otherwise, the VM-related files will remain even after the ESXi hosts are deleted from vCenter Server using [Remove from Inventory].