Remove a persisted key and unset its variable

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_state_unset

Purpose

Remove a persisted key and unset its variable.

Arguments

  • --file FILE — Optional state file path.
  • KEY — Valid shell identifier to remove.

Side effects

Updates the state file and unsets the named shell variable.

Returns

0 on success; 1 for invalid input or file failure.

Usage

  sgnd_state_unset --file "$SGND_FRAMEWORK_STATE_FILE" SGND_UI_STYLE