delete last class