Go to the Classes tab.
Click the three dots in the top right corner of the class you want to unfollow.
Click Unfollow.
You can also choose the class you want to unfollow in the class filter, and go to the Pupils tab.
Go to Settings.
Click Unfollow class.