You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: nc_attdel.m
    path of file: ./repos/tracacode/1911-COAWST/script/mfiles/rutgers/netcdf
    
    the code of the file until where you have to start completion: function status = nc_attdel(ncfile, Aname, varargin)

%
% NC_ATTDEL:  Delete requested NetCDF attribute
%
% status = nc_attdel(ncfile, Aname, Vname);
%
% This function deletes requested global or variable attribute in a NetCDF
% file. If the "Vname" argument is missing, it is assumed that "Aname" is a
% global attribute.
%
% On Input:
%
%    ncfile      NetCDF file name (char
    
function status = nc_attdel_matlab(ncfile, Aname, Vname, Info)

%
% NC_ATTDEL_MATLAB:  Delete requested NetCDF attribute
%
% status = nc_attdel_matlab(ncfile, Aname, Vname, Info)
%
% This function deletes requested global or variable in a NetCDF file
% using the native Matlab interface. If the "Vname" argument is missing,
% it is assumed that "Aname" is a global attribute.
%
% On Input:
%
%    ncfile      NetCDF file name (string)
%
%    Aname      Attribute name (string)
%
%    Vname      Variable name (string)
%
%    Info       NetCDF information structure (struct array)
%
% On Output:
%
%    status     Error flag
%

%  Initialize error flag.

status = 0;

if (isempty(Vname)),
  got_var = false;
else
  got_var = true;
end