Add delete_class method.