Need dashlight help!

I had the battery unhooked i thought it would at least pull out enough to allow for me to unhook the wires