Just click on their name on “Setup > Staff”, then click “Remove”. If they had classes, then the teachers will be archived. If you want them completely removed, you’d have to first delete all of their classes, and then remove the user. Note that deleted classes are saved for 2 weeks in the backups, so it might take two weeks for the removed staff to completely disappear.