---
title: REMOVE_KEY
url: https://www.tines.com/docs/formulas/functions/remove-key/
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_KEY

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

Removes the specified key from an object. Path is a dot separated path to the object, you can escape dots using backslash

**Categories:** Objects

## Syntax

```
REMOVE_KEY(object, path)
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "person": {
      "email": "kubrik@movies.com",
      "name": "Stanley"
    }
  }
}
```

Formula:

```
REMOVE_KEY(my_action, "person.email")
```

Output:

```json
{
  "person": {
    "name": "Stanley"
  }
}
```

### Example 2

Input:

```json
{
  "my_action": {
    "person": {
      "email": "kubrik@movies.com",
      "first.name": "Stanley"
    }
  }
}
```

Formula:

```
REMOVE_KEY(my_action, "person.first\.name")
```

Output:

```json
{
  "person": {
    "email": "kubrik@movies.com"
  }
}
```

## Sample actions

### Sample action 1

```json
{
  "standardLibVersion": "14",
  "actionRuntimeVersion": "3",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "person": {
            "name": "Stanley",
            "email": "kubrik@movies.com"
          }
        }
      },
      "position": {
        "x": 2115,
        "y": 4455
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "REMOVE_KEY",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "remove_key": "=REMOVE_KEY(my_action, \"person.email\")"
        }
      },
      "position": {
        "x": 2115,
        "y": 4560
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```

### Sample action 2

```json
{
  "standardLibVersion": "14",
  "actionRuntimeVersion": "3",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "person": {
            "first.name": "Stanley",
            "email": "kubrik@movies.com"
          }
        }
      },
      "position": {
        "x": 2295,
        "y": 4455
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "REMOVE_KEY",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "remove_key": "=REMOVE_KEY(my_action, \"person.first\\.name\")"
        }
      },
      "position": {
        "x": 2295,
        "y": 4560
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```
