---
title: policyRulesRemove mutation | Wartiva GraphQL API
description: Deletes the identified policy rules so they are no longer listed or evaluated. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/mutations/policy-rules-remove.html
updated: 2026-10-07
---

Policies and findings · GraphQL mutation

# `policyRulesRemove` mutation

Deletes the identified policy rules so they are no longer listed or evaluated. Each rule is deleted on its own, so a request can partly succeed: when some rules fail the request returns an error, but the other rules are still deleted. The payload echoes the requested ids. Findings and issues the rules already produced are kept.

## Response

Returns a [`RulesRemovePayload!`](https://wartiva.com/api-docs/types/rules-remove-payload.html)

## Arguments

| Name | Description |
|---|---|
| `orgId` - [`OrganizationId!`](https://wartiva.com/api-docs/types/organization-id.html) | The Organization identifier. |
| `input` - [`RulesRemoveInput!`](https://wartiva.com/api-docs/types/rules-remove-input.html) | Identifies the rules to remove. |

## Example

### Query

```graphql
mutation policyRulesRemove(
  $orgId: OrganizationId!,
  $input: RulesRemoveInput!
) {
  policyRulesRemove(
    orgId: $orgId,
    input: $input
  ) {
    ruleIds
  }
}

```

### Variables

```json
{
  "orgId": "615f3b3b28284380e28a7342",
  "input": RulesRemoveInput
}

```

### Response

```json
{"data": {"policyRulesRemove": {"ruleIds": [4]}}}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
