added functions for deletion of whole array and items in array