I have dual booted Ubuntu 12.04 on my Mac using disk utility and the rEFIt tool.The battery life is very bad and therefore I want to switch back to Ubuntu 10.04 . How can I completely remove the 12.04 partition?
Since you're switching back to Ubuntu 10.04 LTS, you won't want to expand your other OS (I am guessing it's Mac OS X) to fill up the space that had been used for Ubuntu's partitions, because you'll just be installing 10.04 after removing 12.04. This simplifies things.
It is a good idea to actually remove the partitions though, to ensure that Ubuntu 10.04 LTS's installer sees unpartitioned space that it can use.
Boot from the Ubuntu 10.04.4 LTS installation CD/DVD or USB flash drive. (It's worth getting that point release's installation media even if you have the original 10.04 LTS installation media or media for an earlier point release.) Select
Make sure to back up any data in your Ubuntu partitions, as you'll be deleting them and it's a hassle (and sometimes impossible) to recover data from a deleted partition. It's also a good idea to ensure your backups of documents and other important files in your other OS's partition are current. This is less necessary since you won't be resizing that partition, but you could still make a mistake.
Open GParted (System > Administration > GParted Partition Editor). The Ubuntu partitions are of type
After removing those partitions, click the green check mark to apply your changes. Wait for it to finish. Then quit GParted. Double-click on the