code: @Override
      public int doEndTag() throws JspException {
          if (!scopeSpecified) {
              pageContext.removeAttribute(var);
          } else {
              pageContext.removeAttribute(var, scope);
          }
          return EVAL_PAGE;
      }
docs: removes the variable (from a specific scope, if specified)