If you would like to remove yourself as a teacher from a class you are assigned to, go to the Class Admin tab and select the class you wish to be removed from:

Under 'Teachers' you should see your name and to the right of it you will see a grey minus sign. Click this.

If you select this, the following message will appear:

Select 'DELETE' and this will remove you as a teacher for that class.