Shoutout to the `diskutil` command line utility on macOS.
I had problems with some slices on a disk today, and was not able to fix it with the graphical Disk Utility that comes with macOS. These slices were remnants from experimenting with running Asahi Linux on the machine in the past.
I knew there had to be a way to fix it with diskutility cli program.
I found a thread, and the solution for what to do in such situation.
https://apple.stackexchange.com/questions/411544/cant-reclai...
Now the disk can be fully utilised by macOS again.
replies(1):