This question already has an answer here:
Ok so I installed Ubuntu dual boot with Windows 7 last year. But I found out I never used it so I decided to wipe the Ubuntu drive from Windows. Next startup I got this error, note the grub partition has been wiped and I have no way to booting into Win 7 now cuz of this grub rescue error. I have a Kali Linux live USB, so I can boot and do some changes (although this is technically not a Ubuntu live USB)
Edit: I can't boot into neither Windows or Ubuntu (It's deleted) now, so commands to run in Ubuntu won't work for me. And btw the grub files are gone.
Any idea how to fix this? Thanks :)