environment.remove

Removes the environment variable with the given name.

If the variable isn't in the environment, this function returns successfully without doing anything.

Note: On some platforms, modifying environment variables may not be allowed in multi-threaded programs. See e.g. glibc.

class environment
static @trusted nothrow @nogc
void
remove
(
scope const(char)[] name
)

Meta