All education should be optional, But you can be a full US citizen, with the right to vote and guns unless you are a high school (GED included) graduate.
No, I’m serious, ban the student.
Let them be educated in the safety of their own home on the internet where they cannot be shot to death en mass by some bullied, disaffected, maladjusted classmate, and the rest of us do not have to have our freedom attacked, because no one has bothered to secure or defend them.
We need a lot less sitting ducks.