---
title: hide-env
categories: |
core
version: 0.104.0
core: |
Hide environment variables in the current scope.
usage: |
Hide environment variables in the current scope.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->
# `hide-env` for [core](/commands/categories/core.md)
<div class='command-title'>Hide environment variables in the current scope.</div>
## Signature
```> hide-env {flags} ...rest```
## Flags
- `--ignore-errors, -i`: do not throw an error if an environment variable was not found
## Parameters
- `...rest`: Environment variable names to hide.
## Input/output types:
| input | output |
| ------- | ------- |
| nothing | nothing |
## Examples
Hide an environment variable
```nu
> $env.HZ_ENV_ABC = 1; hide-env HZ_ENV_ABC; 'HZ_ENV_ABC' in $env
false
```