Delete ``name`` from the environment. Raises ``KeyError`` if it does not exist, unless ``raising`` is set to False.
(self, name: str, raising: bool = True)
| 326 | self.setitem(os.environ, name, value) |
| 327 | |
| 328 | def delenv(self, name: str, raising: bool = True) -> None: |
| 329 | """Delete ``name`` from the environment. |
| 330 | |
| 331 | Raises ``KeyError`` if it does not exist, unless ``raising`` is set to |
| 332 | False. |
| 333 | """ |
| 334 | environ: MutableMapping[str, str] = os.environ |
| 335 | self.delitem(environ, name, raising=raising) |
| 336 | |
| 337 | def syspath_prepend(self, path) -> None: |
| 338 | """Prepend ``path`` to ``sys.path`` list of import locations.""" |