Reinstall is the only supported way: https://kb.vmware.com/s/article/1317898
Reinstalling ESXi is the only supported way as mentioned.
However, you may try an unsupported way if this is not a critical production system.
see e.g. https://www.altaro.com/vmware/reset-esxi-root-password/
Please consider to backup important data/VMs before following these steps to avoid data loss in case something goes wrong!
André
Moderator note: I moved your discussion to ESXi Discussions.
Thanks for your nice reply. I used your method its Works.. 5 Stars