Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I installed Ubuntu 12.04 and now I want it deleted from my computer. I installed Ubuntu on a USB stick so I could dualboot my HP with windows 7 but now I want it removed. How do I do this?

share|improve this question

marked as duplicate by Eliah Kagan, Luis Alvarado Aug 8 '13 at 9:49

This question was marked as an exact duplicate of an existing question.

I would remove the partition. If this is on a usb stick then format it, however if you were using grub, and it was installed to the MBR you will need to boot into the windows install disk, and use the startup repair option, to restore window's boot code, A nice guide is here.

to remove a partition from a HDD simply use fdisk, or some other tool, like partition magic for windows, conversely if Linux was installed on a separate HDD, then simply remove the disk, or format it.

Since you weren't too specific, if you want windows removed, then I would suggest installing Linux over it with a live CD, or not so sure about this but i believe you usb stick might have an option to install to hard disk some where in it's GUI-land.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.