clearInstallationValue

Removes the installation value of a setting.

Category: Environment and Settings > System Commands

Syntax

clearInstallationValue(S)

Clears the installation layer of setting S; the other layers are kept.

Description

The installation layer holds values set for a whole installation by an administrator, below the personal and temporary layers in priority. clearInstallationValue empties that layer only. If the setting has no installation value the call does nothing.

Input arguments

S
A matlab.settings.Setting object.

Example

Safe to call without a value

s = settings;
g = addGroup(s, 'demo');
a = addSetting(g, 'Level', 'PersonalValue', 1);
clearInstallationValue(a)
disp(hasInstallationValue(a))
disp(a.ActiveValue)
removeGroup(s, 'demo');
Output
   0
     1

See also

hasInstallationValue clearPersonalValue clearTemporaryValue addSetting