Connect the USBasp to the ISP pins on the Mega. On the IDE, select, "Sketch/Upload Using The Programmer". This will load the sketch and wipe out the bootloader. You can continue loading sketches this way, until you want to load using the Mega's USB connection. Then you will have to load the bootloader usng the USBasp,, select Tools/Burn Bootloader .