Ignition/side switch

What is that switch on the side of the ignition lock ?
What is the use for that. ?
Well turned my car off , walked into my home Then heard my fan was so loud while car is off and all instrument lights kept on flickering !
So I removed the cover and rewired 2 wires on the ignition all back came to normal !
Now I can't remove the key so I unplugged that switch on the side of the ignition and car is fine!
Is it ok to drive the car while the switch is unhooked ?
I did research on my problem and all came out with diff answers !
Thank you in advance


