I had a Ubuntu partition and windows 7 partition after installing windows 10 I accidentally deleted my Ubuntu partition, now I'm stuck at grub rescue. I saw a YouTube tutorial and did the steps like set boot, set prefix etc. I tried em all hd0 and msdos0 to 9. No luck... Any help? Pretty please...
Another thing you could do (this worked for me) is take out your hard drives and then turn the PC/Laptop on, you should then try make your way into the Bios and stick windows on top of the boot order and Linux at the bottom, then save and exit.
Then turn off the PC/Laptop and stick the hard drives back in.
Others (including me) had this problem before. Visit GRUB rescue problem after deleting Ubuntu partition!
what worked for me was the answer from rumman0786:
boot your computer on a Ubuntu live-CD or live-USB
then follow the section "2nd option : install Boot-Repair in Ubuntu" from this link
This happend because you lost your ubuntu partition but still have the grub. In case you later want to remove a linux partition, remove the grub first and then the partition (plenty of info on askubuntu and youtube about that)