Don't have Telegram yet? Try it now!
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