If you have install Windows 7 (or Vista) and Linux and wanted to remove linux without removing windows OS or formatting the PC. Follow the following steps:
Step 1: Delete the Linux Partion and its Swap area of Linux. Don't delete the swap area of Windows 7 Operating System.
Step 2: Restart the Computer only after step 1. A windows shown below appear

type followiing command to login in Windows 7 Operating System:
----------------------Command for login into windows from GRUB loader--------------------------------
rootnoverify (hd0,0)
chainloader +1
makeactive
boot
__________________________or__________________________________
reboot
Through above command you will get login into windows 7 Operating System and restart the computer or Press ctr+alt+del (task manager shortcut) to restart the computer.
Step 3: Insert Windows 7 disk before restarting the computer in step 2.
step 4: Press a key when you are prompted.
step 5: Select a language, a time, a currency, a keyboard or an input method, and then click Next.
step 6: Click Repair your computer.
step 7: Click the operating system that you want to repair (Windows 7 in this case), and then click Next.
step 8: In the System Recovery Options dialog box, click Command Prompt.
step 9: Once in the command prompt, type exactly Bootrec.exe /FixMbr and then press ENTER. You will see "operation completed successfully." (Doesnt even take a second. Dont be alarmed )
step 10: Reboot and set BIOS to boot from the HDD again.
GRUB will be overwritten in step 7 and Windows bootloader will once again take control of loading your OS(s).