ESP32-C6 power on/off with IO button

I have found that if I wire a switch between the EN pin under the board and ground, I can cut power to the board, while still allowing the battery to be charged.