The new array unset command deletes all elements from an array whose key matches be given glob-style pattern. If no pattern is provided, the command deletes the array variable and all of its elements.