Deletes an element from a list.
Returns a copy of the list, without the specified element.

listDeleteAt(list, position [, delimiters]) → returns string

Argument Reference

list string

position numeric

delimiters string
Default: ,

Sample code invoking the listDeleteAt function

Deletes 2nd item from the list

listDeleteAt("foo,bar,lorem,ipsum", 2)

Expected Result: foo,lorem,ipsum

Deletes 2nd item from the list using a custom delimiter

listDeleteAt("foo,bar|lorem,ipsum|me|something", 2, "|")

Expected Result: foo,bar|me|something

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub