Help to restore to original setting

Hi guys i bought wii last month and its on 3.3, i install homebrew using twilight hack and install boot loader. now problem is my memory card slot is not working (card is not staying in) i think the lock which hold the card in is broken. i want to send it back for warrenty, can someone help me to take off all the software & ios which i install for hack.

i install following things on it
IOS61-64-NUS-v4890.wad, PAL Internet Channel.wad, RVL-Shopping-NUS-v16.wad, Wii Gator.wad,cIOS_Installer, homebrew_browser, and i think ios49 and twilight-hack-v0.1-beta1

ok somehow i manage to run hoebrew and try to uninstall wad and it gave me error and restart after that awhen ever i hit homebrew chellen its restart, so fedup i format the wii using setting, its come back on as i bought it mean asking me for all the seeting again, everything save is gone, does it mean that i am now on factory default