The undef() function clears a variable, including lists and tables, or a table member. A list entry cannot be undefined. An undefined variable has no value. Other statements and functions cannot use it until it is reassigned a value.
Note:
The undef() function cannot be used to undefine a global or static variable.