1. Docs
  2. Formulas
  3. Functions

DELETE

Deletes an item from an array at a given index and returns the array minus that deleted value.

Categories: Arrays

Syntax

DELETE(array, index)

Examples

Example 1

Formula

DELETE(["a", "b", "c"], 1)

Output

1
[
2
"a",
3
"c"
4
]

Example 2: Accepts negative indexes.

Formula

DELETE(["a", "b", "c"], -1)

Output

1
[
2
"a",
3
"b"
4
]

Sample actions

Event Transform
My Action
Event Transform
DELETE

Select an action to inspect

You can also click "Copy actions" and paste them in your Tines story to see how they work.

Was this helpful?