unset

Remove shell variables or functions. More information: https://manned.org/unset.

unset foo

unset -v foo bar

unset -f my_func