ID EN
OS

unsetenv

Python 3.11

Unset (delete) the environment variable named key. Such changes to the environment affect subprocesses started with os.system(), popen() or fork() and execv().

Syntax

PYTHON
os.unsetenv(key, /)

See Also

os.system() popen() fork() execv() os.environ unsetenv() unsetenv() os.environ