Wait, which schools don't do it? I've never heard of a school not doing it. Are there states that don't do the pledge?

Even if it's not strictly "mandatory" there can be substantial pressure in conservative areas. https://news.ycombinator.com/item?id=47095381

I definitely never did it in high school in Denver, nor did any of the other schools that my friends went to in the city.

I don’t have a list of schools for you.

Sure peer pressure can be a thing (at the school I went to you would have been bullied for doing the pledge), but it is pretty firmly established law that a student has every right to not participate and not be pressured to participate by public school staff.

Interesting, didn't know that was a thing in Denver. No need for a list of schools.

In my case the pressure came from my teachers and the principal. I never got in any official trouble but I was sent to the principal's office for refusing to say it and it required a phone call with my dad for them to begrudgingly let me continue to not say it.

I don't think it is always "states" as much as individual school districts / schools.

I know some that don't, it's not announced that they don't and as long as nobody notices I don't think anyone local really cares.