On/Off switch for externally powered Arduino

I am using a wall adapter to power my Arduino project. Is it possible to connect a switch to the Arduino to turn the power on and off?

How will you be mounting the Arduino?

Normally a SPST toggle switch will do what you want.

Thank you for your response.

I have the Arduino mounted inside a box with 2 holes cut out for the power and usb connectors. I would like to have a switch mounted on the outside of the box to toggle the power to the board (so it doesn't need to be unplugged). Is it possible to connect the switch to the Arduino to toggle the power or will I need to do something else?

I'm not sure if I'm explaining it well, so I've attached a diagram.

You could install a chassis mount power jack in your box.

Connect the positive of the jack to the Arduino Vin pin and the jack negative to the Arduino GND pin.

The switch is placed in the positive line.

So just to confirm, I would not be able to use the built in jack, but rather I would need to install a new jack with a switch as in the attached image?

Thanks again!

How 'bout one of these?

Or:

Just make sure the plug size is right (5.5 X 2.1 mm).

Yes, I think that will do the trick, thank you!