function deleteVar(cdfId,varNum)
%cdflib.deleteVar Delete CDF variable
%   cdflib.deleteVar(cdfId,varNum) deletes the CDF variable specified by 
%   varNum from the file specified by cdfId.
%   
%   This function corresponds to the CDF library C API routine 
%   CDFdeletezVar.  
%
%   Example:
%       cdfId = cdflib.create('myfile.cdf');
%       varNum = cdflib.createVar(cdfId,'Time','cdf_int1',1,[],true,[]);
%       info1 = cdflib.inquire(cdfId);
%       cdflib.deleteVar(cdfId,varNum);
%       info2 = cdflib.inquire(cdfId);
%       cdflib.close(cdfId);
%
%   Please read the file cdfcopyright.txt for more information.
%
%   See also cdflib, cdflib.createVar.

%   Copyright 2009-2022 The MathWorks, Inc.

matlab.internal.imagesci.cdflib('deleteVar',cdfId,varNum);
