rmpref

Remove preference

Syntax

rmpref('group','pref')
rmpref('group',{'pref1','pref2',...'prefn'})
rmpref('group')

Description

rmpref('group','pref') removes the preference specified by group and pref. It is an error to remove a preference that does not exist.

rmpref('group',{'pref1','pref2',...'prefn'}) removes each preference specified in the cell array of preference names. It is an error if any of the preferences do not exist.

rmpref('group') removes all the preferences for the specified group. It is an error to remove a group that does not exist.

Examples

addpref('mytoolbox','version','1.0')
rmpref('mytoolbox')
Was this topic helpful?