Hi, I had the same problem when I was trying to re-use a disk that I had previously had ESXi on it as I wanted to boot from USB so I could use that SSD drive as part of a vSAN disk group. The partedUtil command would only get rid of some of the partitions, but 2 and 9 were marked as read only. The truth is that they are in fact in use by the current ESXi host as ScratchConfig (2) and core dump (9). To clean them up as well, follow these instructions:
Disks not available for use in VSAN configuration » ValCo Labs
Once I followed these instructions and rebooted, I was able to use the drive as normal.