function clruprop(handle, name)
%CLRUPROP Clear user-defined property.
%  CLRUPROP(H, NAME) clears the user-defined property NAME,
%  if it exists, from the object specified by handle H.
%
%  This function is obsolete, use RMAPPDATA instead.
%
%  See also SETAPPDATA, GETAPPDATA, RMAPPDATA, ISAPPDATA.

%  Steven L. Eddins, October 1994
%  Copyright 1984-2000 The Mathworks, Inc. 
%  $Revision: 1.14 $  $Date: 2000/06/02 04:41:54 $

if (~ishandle(handle))
  error('H is not a valid handle.');
end

% for backwards compatibility, it is not an error to specify a
% userprop that doesn't exist
if isappdata(handle, name)
  rmappdata(handle, name);
end
  

