---
title: Delete an alert condition
source: https://docs.newrelic.com/docs/workflow-automation/setup-and-configure/actions-catalog/newrelic/alerts/newrelic-alerts-delete-condition
---

The action identifier is `newrelic.alerts.deleteCondition`.

Deletes an existing alert condition. Works across condition types — static, baseline, and others.

## Inputs

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

| Input         | Type   | Description                                                     | Example                                                                                     |
| ------------- | ------ | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| **accountId** | Int    | **Required.** The New Relic account that owns the condition.    | `123456`                                                                                    |
| **id**        | String | **Required.** The ID of the condition to delete.                | `"7654321"`                                                                                 |
| **selectors** | List   | **Optional.** JQ selectors to extract values from the response. | ```yaml selectors:   - name: deletedId     expression: ".data.alertsConditionDelete.id" ``` |

## Outputs

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

| Output           | Type    | Description                                                                                                                                          |
| ---------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| **success**      | Boolean | `true` when the step executed without error.                                                                                                         |
| **errorMessage** | String  | Error message on failure. `null` on success.                                                                                                         |
| **data**         | Map     | NerdGraph response containing the deleted condition's ID. ```json {   "data": {     "alertsConditionDelete": {       "id": "7654321"     }   } } ``` |

## Example

The following example deletes an alert condition regardless of its type.

| Workflow example                                                                                                                                                                                                                                                                                                      |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ```yaml name: delete_alert_condition description: Delete an alert condition steps:   - name: deleteCondition     type: action     action: newrelic.alerts.deleteCondition     version: 1     inputs:       accountId: ${{ .workflowInputs.accountId }}       id: ${{ .workflowInputs.conditionId }}     next: end ``` |
