unlet for experimental
Delete variables from nushell memory, making them unrecoverable.
Signature
> unlet {flags} ...rest
Parameters
...rest: The variables to delete (pass as $variable_name).
Input/output types:
| input | output |
|---|---|
| nothing | nothing |
Examples
Delete a variable from memory
> let x = 42; unlet $xDelete multiple variables from memory
> let x = 1; let y = 2; unlet $x $yAttempting to delete a built-in variable fails
> unlet $nuAttempting to delete a non-variable fails
> unlet 42