You can absolutely leave out the onion if you desire. It adds a little extra flavor but your roasted peppers will still taste amazing without it.