I deleted partition and now I don't see the free space in Disk Utility

Solution 1:

Have you try these steps to fix your issue:

$ diskutil list

It will list your physical drive detail. Note the drive name for unallocated space.

sudo diskutil eraseVolume "Free Space" %noformat% /dev/disk0s3

Assuming your volume is named disk0s3

Next, resize your APFS Container

diskutil apfs resizeContainer disk0s2 0

With value zero at the end, diskutil will automatically claim all available free space.

It should be fine and then you can re-setup macOS from Recovery mode.