function theResult = del(self)

% del -- Delete a NetCDF attribute.
%  del(self) deletes the NetCDF attribute associated
%   with self, an ncatt object, and returns [] if
%   successful.  Otherwise, it returns self.
 
% Copyright (C) 1997 Dr. Charles R. Denham, ZYDECO.
%  All Rights Reserved.
%   Disclosure without explicit written consent from the
%    copyright owner does not constitute publication.

if nargin < 1, help ncatt/del, return, end

status = ncmex('attdel', ncid(self), varid(self), name(self));

if status >= 0
   result = [];
  else
   result = self;
end

if nargout > 0
   theResult = result;
end
