commands.sh

unset

all

Remove shell variables or functions.

More info →

Examples (3)

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
made by @shridhargupta | data from tldr-pages