Just wondering, can't you do the delete partition with the UpdateDiskPartitions method.
When you pass an empty Spec it erases all partitions.
Perhaps worth asking Support if that achieves the same thing?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference