I had Dual boot Ubuntu with Windows 10 on my machine. Then, wanted to make the computer like factory new and did some work around the partitions including deleting the one with Ubuntu content. This way I was able to get the main partition with a decent amount of space.
Then the computer was turned off and then when trying to start it was getting the following error
error: no such partition
Entering rescue mode...
grub rescur>
Considering the partition with Ubuntu doesn't exist anymore, how should I fix this considering I'm ok with losing all the files?