Removing existing teams or channels from Microsoft Teams when no longer needed
Hi,
When you're added to a student to the Class, you will be a member of the Class but you will not have permission to delete the Class only the owner of the Class can delete the team. But in your scenario no need to delete the Class, you need to contact the teacher and let him know to remove you from the Class.
If you want you can hide the Class in the meantime:
Open the Microsoft Teams> Teams tab> Click on three dots at the Class> Hide.
Appreciate your patience and understanding. Have a good day and stay safe 😊
Best Regards,
Chitrahaas