---
title: REMOVE
url: https://www.tines.com/docs/formulas/functions/remove/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# REMOVE

*[View on tines.com](https://www.tines.com/docs/formulas/functions/remove/)*

Removes every occurrence of the specified sub-text from text.

**Categories:** Text

## Syntax

```
REMOVE(text, text_to_remove)
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "message": "The car carted carrots"
  }
}
```

Formula:

```
REMOVE(my_action.message, "car")
```

Output:

```json
"The  ted rots"
```

## Sample actions

```json
{
  "standardLibVersion": "13",
  "actionRuntimeVersion": "1",
  "agents": [
    {
      "disabled": false,
      "name": "REMOVE",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "remove": "=REMOVE(my_action.flat_array, 'apple')"
        }
      },
      "position": {
        "x": -6600,
        "y": -1245
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "flat_array": [
            "apple",
            "pear",
            "orange",
            "grapes"
          ],
          "object_array": [
            {
              "name": "Martin"
            },
            {
              "name": "Shelby"
            },
            {
              "name": "Thomas"
            }
          ],
          "nested_array": [
            [
              "cat",
              "turtle"
            ],
            [
              "dog"
            ]
          ],
          "array_with_null": [
            "apple",
            null,
            "banana",
            "grape",
            ""
          ]
        }
      },
      "position": {
        "x": -6600,
        "y": -1380
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 1,
      "receiverIdentifier": 0
    }
  ],
  "diagramNotes": []
}
```
