purge_cache
Clear the cache of a Cloudflare zone by purging all files, specific URLs, tags, hosts, or prefixes. Requires explicit confirmation to execute.
Instructions
Purge a zone's cache — everything, or by files/tags/hosts/prefixes. Requires confirm:true (human-approval gate); without it returns a preview only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone_id | Yes | The Cloudflare zone ID (32-char hex). Get it from list_zones. | |
| purge_everything | No | Purge the entire cache. Mutually exclusive with files/tags/hosts/prefixes. | |
| files | No | Specific URLs to purge. | |
| tags | No | Cache-Tags to purge (Enterprise). | |
| hosts | No | Hostnames to purge (Enterprise). | |
| prefixes | No | URL prefixes to purge (Enterprise). | |
| confirm | No | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve before this is set to true. |