---
title: "ezgh registry cache-rules delete"
description: "Delete a pull-through cache rule and every repository it cached."
---

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

# ezgh registry cache-rules delete

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh registry cache-rules delete <rule> [--yes] [flags]
```

Delete a pull-through cache rule, given by prefix, ID or slug. Pulls through it stop at once, and every repository it cached is deleted in the background, even ones you couldn't delete yourself (only registry.cacheRules.delete is checked); then the rule goes and its prefix is free again. Asks first, saying how many repositories go, unless `--yes`.

Part of [`ezgh registry cache-rules`](/cli/reference/registry-cache-rules).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `-y`, `--yes` | boolean |  | don't ask for confirmation |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/registry-cache-rules-delete/index.mdx
