Delete the dynamic array.