# \[F8\] removing all instances of a string from an array?

**URL:** <https://forum.kirupa.com/t/f8-removing-all-instances-of-a-string-from-an-array/217488>\
**Category:** flash\
**Created:** [February 27, 2007, 1:48pm UTC](https://forum.kirupa.com/t/f8-removing-all-instances-of-a-string-from-an-array/217488 "2007-02-27T13:48:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingscooty](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@kingscooty](https://forum.kirupa.com/u/kingscooty)\
**Post date:** [February 27, 2007, 1:48pm UTC](https://forum.kirupa.com/t/f8-removing-all-instances-of-a-string-from-an-array/217488/1 "2007-02-27T13:48:54Z")

</div>

Hey is there an easy way of removing all instances of a string from an array?

Say i had, [0] forward, [1] forward, [2] right, [3] crash, [4] crash, [5] crash  
(this structure will change)

How would i remove all “crash” instances? the splice method just doesn’t cut it =/
