# How do you delete an array?

**URL:** <https://forum.kirupa.com/t/how-do-you-delete-an-array/199980>\
**Category:** Uncategorized\
**Created:** [September 7, 2006, 6:53pm UTC](https://forum.kirupa.com/t/how-do-you-delete-an-array/199980 "2006-09-07T18:53:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pspecial](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pspecial](https://forum.kirupa.com/u/pspecial)\
**Post date:** [September 7, 2006, 6:53pm UTC](https://forum.kirupa.com/t/how-do-you-delete-an-array/199980/1 "2006-09-07T18:53:45Z")

</div>

I’m populating an array using the push method. I would like the user to be able to select from 1 of 5 different XML docs… these load info into the array. But when the user selects anew, I dont know how to destroy the array so that I can re-populate it.

Also, is there a way to destroy an XML object?

Any suggestions?
