delete
delete(name)
In this function, the argument name is a scalar or an array variable name or array element. If name is a scalar variable or array element, it is deleted and its value is returned. If name is an array variable, the contents of the array are deleted and the array name is removed from the symbol table. A null string is returned in this case. If the array name is a function formal parameter, then only the contents are deleted. This is useful for functions which take an array name as a parameter and fill it as a side effect. The argument to delete must not be a local variable or scalar function argument.
Example
val = delete(stack[p++])