• /
  • EnglishEspañolFrançais日本語한국어Português
  • Log inStart now

Delete an alert condition

|View as Markdown

The action identifier is newrelic.alerts.deleteCondition.

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

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.

selectors:
- name: deletedId
expression: ".data.alertsConditionDelete.id"

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.

{
"data": {
"alertsConditionDelete": {
"id": "7654321"
}
}
}

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

Workflow example

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
Copyright © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.