https://rakhesh.com/virtualization/script-to-run-esxcli-unmap-on-all-datastores-attached-to-an-esxi-host/
Script to run esxcli unmap on all datastores attached to an ESXi host