Files
cheatsheet-tldr/tldr/unset
2025-12-17 00:21:28 +00:00

22 lines
472 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# unset
> Remove shell variables or functions.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-unset>.
- Remove variable, or if the variable doesn't exist, remove the function of the same name:
`unset {{variable}}`
- Remove variables:
`unset -v {{variable1 variable2 ...}}`
- Remove the function:
`unset -f {{function_name1 function_name2}}`