environment.remove

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

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.