Notifications
Clear all

[Closed] How do you delete all elements in an Array?

I simply want to clear out everything in an array.

There are thousands of things that get put into this array, so using deleteitem 1,2,3,4,5…is just not going to happen. Any ideas?

2 Replies

Set the array.count value to 0 or #().

array.count = 100
 #(undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, ...)
 array.count = 0
 #()
 array = #()
 #()

-Eric

Woooooowwwwwww I’m dumb lol. Shows how much I know about arrays. Thanks a ton though Eric!