# Truncate an array

**URL:** <https://forum.kirupa.com/t/truncate-an-array/168538>\
**Category:** flash\
**Created:** [November 8, 2005, 12:58am UTC](https://forum.kirupa.com/t/truncate-an-array/168538 "2005-11-08T00:58:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![superprg](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@superprg](https://forum.kirupa.com/u/superprg)\
**Post date:** [November 8, 2005, 12:58am UTC](https://forum.kirupa.com/t/truncate-an-array/168538/1 "2005-11-08T00:58:14Z")

</div>

How can I truncate an array so that it length also becomes 0 and all the data is lost in it?  
Thanks
