unset
Remove shell variables or functions. More information: https://manned.org/unset.
-
Remove the variable
foo, or if the variable doesn't exist, remove the functionfoo:
unset {{foo}} -
Remove the variables foo and bar:
unset -v {{foo}} {{bar}} -
Remove the function my_func:
unset -f {{my_func}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.