Spec-Zone.ru › Nushell

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 $x

Delete multiple variables from memory.

> let x = 1; let y = 2; unlet $x $y

Attempting to delete a built-in variable fails.

> unlet $nu

Attempting to delete a non-variable fails.

> unlet 42

Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/unlet.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API