VMware vSphere ESXi 8.0U2 and U3
To enable unmap for NVMe in 8.0U2 & U3 follow the below steps:
# esxcfg-advcfg -g /Scsi/NvmeUseDsmTp4040# esxcfg-advcfg -s 1 /Scsi/NvmeUseDsmTp4040
# esxcfg-advcfg -g /Scsi/NvmeUseDsmTp4040# esxcli storage core claiming reclaim -d <namespace_uuid>
As of 9.x this option is automatically enabled .