opendap/src/main/java/opendap/dap/DDS.java
public void delVariable(String name)
    {
        try {
            BaseType bt = getVariable(name);
            vars.removeElement(bt);
        } catch (NoSuchVariableException e) {
        }
    }
public void delVariable(String name)
    {
        try {
            BaseType bt = getVariable(name);
            vars.removeElement(bt);
        } catch (NoSuchVariableException e) {
        }
    }
Removes a variable from the <code>DDS</code>.
Does nothing if the variable can't be found.
If there are multiple variables with the same name, only the first
will be removed.  To detect this, call the <code>checkSemantics</code>
method to verify that each variable has a unique name.

@param name the name of the variable to remove.
@see DDS#checkSemantics(boolean)