unset environment variable python code example Example: remove env variable python del os.environ['MYVAR']