purge_cache
Clear Cloudflare's cache for a zone to remove outdated content. Purge all cached files or target specific URLs, tags, and hosts to ensure visitors see updated website content.
Instructions
Purge Cloudflare's cache for a zone. Can purge everything or specific files/tags/hosts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone_id | Yes | The zone ID | |
| purge_everything | No | Purge all cached content (use cautiously!) | |
| files | No | Array of URLs to purge | |
| tags | No | Array of cache tags to purge | |
| hosts | No | Array of hosts to purge |
Input Schema (JSON Schema)
{
"properties": {
"files": {
"description": "Array of URLs to purge",
"items": {
"type": "string"
},
"type": "array"
},
"hosts": {
"description": "Array of hosts to purge",
"items": {
"type": "string"
},
"type": "array"
},
"purge_everything": {
"description": "Purge all cached content (use cautiously!)",
"type": "boolean"
},
"tags": {
"description": "Array of cache tags to purge",
"items": {
"type": "string"
},
"type": "array"
},
"zone_id": {
"description": "The zone ID",
"type": "string"
}
},
"required": [
"zone_id"
],
"type": "object"
}