---
title: "anomalies rules delete"
description: "Delete an anomaly rule"
canonical: "https://pgbeam.com/docs/cli/anomalies/rules/delete"
last-updated: "2026-11-09T17:53:44.000Z"
---

# anomalies rules delete

> Delete an anomaly rule

URL: https://pgbeam.com/docs/cli/anomalies/rules/delete

{/* Auto-generated from CLI commands. Do not edit. Run `pnpm generate:cli-docs` to regenerate. */}

Removes the rule, so its metric returns to the deployment default for that scope. Deleting a rule that was silencing a metric turns that metric's alerts back on.

## Usage

```bash
pgbeam anomalies rules delete <id> [flags]
```

## Options

| Option        | Description                                                 | Required | Default |
| ------------- | ----------------------------------------------------------- | -------- | ------- |
| `<id>`        |                                                             | Yes      | -       |
| `--yes`, `-y` | Skip the confirmation prompt (useful for scripts and CI/CD) | No       | -       |

> **Global options**
>
> All [global options](/docs/cli/global-options) (`--token`, `--profile`,
> `--project`, `--org`, `--json`, `--no-color`, `--no-trunc`, `--debug`) are
> also available on this command.

## Examples

```bash
# Delete an anomaly rule
pgbeam anomalies rules delete

# Output as JSON
pgbeam anomalies rules delete --json
```

## Output

Renders a human-readable table or detail view by default; pass `--json` for the raw API response.