zero out the array value after delete