As the pre 01 models are easy top load I assume you have a 01-up.
easiest way I have found is 1. remove seat and put bike on stand 2.undo rear top shock mount,rotate shock rearward.3. take out the bolts that hold the battery box,leaving battery and cables attached.4.wiggle complete battery box assy out from right to left exiting behind on kickstarter side.