How is Law of Conservation of Charge valid if protons and electrons are destroyed in a system?

So I am preparing for an exam with material from openstax books on physics. There in the static electricity chapter I saw this paragraph,

"Because the fundamental positive and negative units of charge are carried on protons and electrons, we would expect that the total charge cannot change in any system that we define. In other words, although we might be able to move charge around, we cannot create or destroy it. This should be true provided that we do not create or destroy protons or electrons in our system. In the twentieth century, however, scientists learned how to create and destroy electrons and protons, but they found that charge is still conserved. Many experiments and solid theoretical arguments have elevated this idea to the status of a law. The law of conservation of charge says that electrical charge cannot be created or destroyed."

Since we destroyed charges, how then is it still conserved? Could someone please explain?

• Electrons have charge $-e$, and protons have charge $+e$. As long as an equal number of electrons and protons are destroyed in a given process then the total charge will not change. Commented Nov 14, 2023 at 18:32
• Can you think of an example where the total charge of a system changes? Commented Nov 14, 2023 at 18:38
• In your quote " but they found that charge is still conserved Many experiments and solid theoretical arguments have elevated this idea to the status of a law". Laws are axioms for theories of physics, they develop from experimental evidence and relate the mathematics of a theory to the observations and measurements. even when protons interact and may be destroyed the total charge goes to the particles coming out from the interaction so that total charge is always conserved. Commented Nov 14, 2023 at 18:40
• When an electron is destroyed via annihilation with a positron, the positively-charged positron gets destroyed too. When a proton gets destroyed via annihilation with an antiproton, the negatively-charged antiproton gets destroyed too. If you know what Feynman diagrams are, charge is conserved at every single vertex. (The vertices represent the fundamental interactions of elementary particles.) Commented Nov 14, 2023 at 18:49
• @ErJio I see, it all boils down to the imbalance only and not the actual numbers of either charge. Commented Nov 15, 2023 at 5:55