API Reference › Os › Os.unset_env
method

Os.unset_env

Os.unset_env(name) -> bool

Removes an environment variable from this process. Returns true on success (including when the variable was already absent).

Parameters

namethe variable name

Example

program UnsetEnv {
  entry {
    Os.set_env("LUDIC_TMP", "1")
    if Os.unset_env("LUDIC_TMP") { print(1) }
  }
}
← All symbols