Common task for R&D Lab. I have moderately large VSAN cluster with large number of disks previously participated in VSAN.
vCenter task "Erase all partitions" fails
The only way to clean is to ssh to all ESXi hosts and "esxcli vsan strorage remove"
Current status: I can get all GroupUUID by host and generate .sh files for each host with corresponding "esxcli vsan storage remove --uuid 521a2882-0d7f-ef06-a117-d436718c6248"
It makes life easier, but still a lot of manual work for 10+ hosts cluster.
Get-ESXCli provides vsan.storage abstraction with remove method, but with unclear documentation and no examples.
Please point me to right direction - how can I clear VSAN partitions 100% automated?