> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mightynetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# deleteAutomationRule

> Delete an automation rule.

**Required scope:** `host:write:network_integrations`



**mutation** `deleteAutomationRule(input: DeleteAutomationRuleInput!): DeleteAutomationRulePayload`

> Deprecated: Use deleteAutomationWorkflow.

## Arguments

**`input`**: `DeleteAutomationRuleInput!` (required)

Parameters for DeleteAutomationRule

## Returns

`DeleteAutomationRulePayload`

**`automationRule`**: `AutomationRule`

---

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`errors`**: `[String!]!`

## Examples

```graphql Mutation
mutation DeleteAutomationRule($input: DeleteAutomationRuleInput!) {
  deleteAutomationRule(input: $input) {
    automationRule {
      automationRuleActions {
        actionType
        asset {
          __typename
        }
        configParameters
        createdAt
        delaySeconds
        embeddedLink {
          __typename
        }
      }
      automationRuleFilter {
        aiFilterPrompt
        id
        marketingAudiences {
          __typename
        }
        resourceId
      }
      billingPlanRestricted
      createdAt
      creator {
        ambassadorLevel
        ambassadorLevelId
        avatarUrl
        badges {
          __typename
        }
        communityRole
        conversations {
          __typename
        }
      }
      description
    }
    clientMutationId
    errors
  }
}
```

```json Variables
{
  "input": {
    "id": "id"
  }
}
```

```json Response
{
  "data": {
    "deleteAutomationRule": {
      "automationRule": {
        "automationRuleActions": [
          {
            "actionType": "ADD_BADGE",
            "asset": {
              "__typename": "Asset"
            },
            "configParameters": "value",
            "createdAt": "value",
            "delaySeconds": 1,
            "embeddedLink": {
              "__typename": "EmbeddedLink"
            }
          }
        ],
        "automationRuleFilter": {
          "aiFilterPrompt": "string",
          "id": "id",
          "marketingAudiences": [
            {
              "__typename": "MarketingAudience"
            }
          ],
          "resourceId": "id"
        },
        "billingPlanRestricted": true,
        "createdAt": "value",
        "creator": {
          "ambassadorLevel": "string",
          "ambassadorLevelId": 1,
          "avatarUrl": "string",
          "badges": [
            {
              "__typename": "Badge"
            }
          ],
          "communityRole": "CONTRIBUTOR",
          "conversations": {
            "__typename": "PublicConversationConnection"
          }
        },
        "description": "string"
      },
      "clientMutationId": "string",
      "errors": [
        "string"
      ]
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.