1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-30 19:54:23 +02:00
tldr/pages/common/unset.md

16 lines
363 B
Markdown

# unset
> Remove shell variables or functions.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-unset>.
- Remove the variable `foo`, or if the variable doesn't exist, remove the function `foo`:
`unset {{foo}}`
- Remove the variables foo and bar:
`unset -v {{foo}} {{bar}}`
- Remove the function my_func:
`unset -f {{my_func}}`