Where can I mark class as inactive?

You can mark any class as inactive from the main Classes screen under Settings > Accounting. You can uncheck the Active option for it on the grid and save the changes.