---
title: Delete tags from a New Relic entity
source: https://docs.newrelic.com/docs/workflow-automation/setup-and-configure/actions-catalog/newrelic/tagging/newrelic-tagging-deletetags
---

Removes one or more tag keys and all values under them from a New Relic entity.

For prerequisites, see [New Relic Tagging actions](https://docs.newrelic.com/docs/workflow-automation/setup-and-configure/actions-catalog/newrelic/tagging/newrelic-tagging#prerequisites).

## Delete tags

The action identifier is `newrelic.tagging.deleteTags`.

Removes one or more tag keys and all values under them from a New Relic entity. To remove only specific values while keeping other values under the same key, use [`newrelic.tagging.deleteTagValues`](https://docs.newrelic.com/docs/workflow-automation/setup-and-configure/actions-catalog/newrelic/tagging/newrelic-tagging-deletetagvalues) instead. Built on `newrelic.nerdgraph.execute`.

### Inputs

The following table describes all available input fields for this action.

| Input          | Type   | Description                                                                         | Example                                                                                           |
| -------------- | ------ | ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| **entityGuid** | String | **Required.** The GUID of the New Relic entity to untag.                            | `"MTIzNDU2fEFQTXxBUFBMSUNBVElPTnwxMjM0NQ"`                                                        |
| **tagKeys**    | List   | **Required.** The tag keys to remove entirely, including all values under each key. | ```yaml tagKeys: ["team", "environment"] ```                                                      |
| **selectors**  | List   | **Optional.** JQ selectors to extract specific values from the response.            | ```yaml selectors:   - name: errors     expression: ".data.taggingDeleteTagFromEntity.errors" ``` |

### Outputs

The following table describes all output fields returned by this action.

| Output           | Type    | Description                                                                                                                                                                |
| ---------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **success**      | Boolean | `true` when the step executed without error, `false` on failure. Covers both transport failures and NerdGraph business-logic errors.                                       |
| **errorMessage** | String  | Error message on failure, whether transport-level or a NerdGraph business-logic error. `null` on success.                                                                  |
| **data**         | Map     | NerdGraph response: ```json {   "data": {     "taggingDeleteTagFromEntity": {       "errors": null     }   } } ``` Use `selectors` to extract specific fields from `data`. |

### Example

The following example removes the `team` tag key and all its values from an entity.

| Workflow example                                                                                                                                                                                                                                                                                                      |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ```yaml name: newrelic_tagging_deletetags_workflow workflowInputs:   entityGuid:     type: String steps:   - name: untagCheckoutApp     type: action     action: newrelic.tagging.deleteTags     version: 1     inputs:       entityGuid: ${{ .workflowInputs.entityGuid }}       tagKeys: ["team"]     next: end ``` |
