1. Docs
  2. Formulas
  3. Functions

REMOVE

Removes every occurrence of the specified sub-text from text. When given an array, it removes every item that exactly matches the value.

Categories: Text

Syntax

REMOVE(text, text_to_remove)

Examples

Example 1

Input

1
{
2
"my_action": {
3
"message": "The car carted carrots"
4
}
5
}

Formula

REMOVE(my_action.message, "car")

Output

"The ted rots"

Example 2: Removes matching items from an array

Input

1
{
2
"my_action": {
3
"tags": [
4
"urgent",
5
"billing",
6
"urgent"
7
]
8
}
9
}

Formula

REMOVE(my_action.tags, "urgent")

Output

1
[
2
"billing"
3
]

Example 3: Array items must match exactly

Input

1
{
2
"my_action": {
3
"tags": [
4
"app",
5
"apple"
6
]
7
}
8
}

Formula

REMOVE(my_action.tags, "app")

Output

1
[
2
"apple"
3
]

Sample actions

Event Transform
REMOVE
Event Transform
My Action

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?