deletes class