To leave a class as a co-teacher:
Go into the class you need and tap on the wrench icon
Tap on Members
Select Teachers and tap on your name
Tap Leave Class
Note that once you leave a class, you will become blocked from that class. If you wish to rejoin the class, an active teacher will need to unblock you.