To delete an existing class you will firstly need to remove all of the students from your class, you will be able to select the 'Remove all of the above students' option we editing your class:
Once all students have been removed you will be able to double-click the classes row, and select 'Delete:
A pop-up will appear asking you to confirm you wish to delete this class: