To leave a class, you'll need to use the website. This is not currently available on the iOS or Android apps.
- Open your class
- Click on the "Settings" button on the right, then select "Edit Class"
- Click on the "Teachers" tab
- You'll see your name under "Collaborators," click on "Leave Class"