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

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

# DELETE

*[View on tines.com](https://www.tines.com/docs/formulas/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:

```json
[
  "a",
  "c"
]
```

### Example 2: Accepts negative indexes.

Formula:

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

Output:

```json
[
  "a",
  "b"
]
```

## Sample actions

```json
{
  "standardLibVersion": "38",
  "actionRuntimeVersion": "4",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": null,
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "array": [
            "hello",
            "test",
            "1",
            "b",
            "a"
          ]
        }
      },
      "position": {
        "x": 975,
        "y": 180
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "recordType": null,
      "recordWriters": [],
      "form": null,
      "cardIconName": null,
      "createdFromTemplateGuid": null,
      "createdFromTemplateVersion": null,
      "originStoryIdentifier": "cloud:8b3d0c1d536d7aef6416b3d0e57a460a:6c8cd17db8bb0a3868840ff9d61a890b"
    },
    {
      "disabled": false,
      "name": "DELETE",
      "description": null,
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "delete": "=DELETE(my_action.array, 2)"
        }
      },
      "position": {
        "x": 975,
        "y": 300
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "recordType": null,
      "recordWriters": [],
      "form": null,
      "cardIconName": null,
      "createdFromTemplateGuid": null,
      "createdFromTemplateVersion": null,
      "originStoryIdentifier": "cloud:8b3d0c1d536d7aef6416b3d0e57a460a:6c8cd17db8bb0a3868840ff9d61a890b"
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```
