Is it possible to recover an erased Mac SSD partition?

I did the stupid thing of formating by accident the main SSD in my Macbook. I was using Windows through an external drive and hit the "Erase" button thinking it was another drive.

So I lost EVERYTHING in my computer and it won't boot as MacOS. I can use windows through the external ssd, and the formatted drive is "Not Allocated" right now. I only erased, I didn't mounted as a new format.

Is there any way to recover the partition/files?


If you have a standard formatting (I assume it is hard to believe) then the chances are that you can restore it.

There are several forms of erasing a data carrier, including deleting the table of contents of a data carrier and erasing individual sectors of a volume.

Since mostly only the table of contents is deleted with a quick format, the data is still on the SSD, only the SSD or the operating system can no longer find any files.

It is therefore possible to restore the files, if you have restored the files, it is advisable to reinstall the macOS operating system, as sensitive files may have been damaged and the system does not work properly.

I use the Disk Drill program to create data. Please correct me if it's not good software