# Clearing all stored data in an array

**URL:** <https://forum.kirupa.com/t/clearing-all-stored-data-in-an-array/224264>\
**Category:** Uncategorized\
**Created:** [April 30, 2007, 6:52pm UTC](https://forum.kirupa.com/t/clearing-all-stored-data-in-an-array/224264 "2007-04-30T18:52:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyot](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kyot](https://forum.kirupa.com/u/kyot)\
**Post date:** [April 30, 2007, 6:52pm UTC](https://forum.kirupa.com/t/clearing-all-stored-data-in-an-array/224264/1 "2007-04-30T18:52:56Z")

</div>

I was wondering… i thought this might be a dumb question to ask but ive been wondering if it is possible to remove all the data that was inserted into an array?

i.e.

```
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#000000] **var** [/COLOR] loadAllThumbnails:[COLOR=#0000FF]Array[/COLOR] = [COLOR=#000000] **new** [/COLOR] [COLOR=#0000FF]Array[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]"poop1"[/COLOR], [COLOR=#FF0000]"poop2"[/COLOR], [COLOR=#FF0000]"poop3"[/COLOR], [COLOR=#FF0000]"poop4"[/COLOR], [COLOR=#FF0000]"poop5"[/COLOR][COLOR=#000000])[/COLOR];

```

someBtn.[COLOR=#0000FF]onRelease[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]  
[COLOR=#808080]_//clears/emptys the array when released_[/COLOR]

[COLOR=#000000]}[/COLOR]  
[/LEFT]  
[/FONT]
