/go/purge deletes everything Cloudflare has cached for a domain. Use it after you change a site's files, theme, or settings and visitors still see the old version because Cloudflare keeps serving its saved copy. It looks up the domain's zone in your Cloudflare account and sends Cloudflare a "purge everything" request. You can purge one domain or every hosted domain. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# Purge the Cloudflare cache of one domain
/go/purge example.com
Options
| Argument | Required | Notes |
|---|---|---|
domain |
Yes | A hosted domain with a /home/<domain>/www folder, or all. |
Examples
# Purge one domain
/go/purge example.com
# Purge every hosted domain
/go/purge all
Output
For each domain the command prints a progress line, then Cloudflare’s reply as raw text.
[1/20] Purge Everything for example.com...
{"result":{"id":"<id>"},"success":true,"errors":[],"messages":[]}
| Line | Meaning |
|---|---|
[<n>/<total>] Purge Everything for <domain>... |
The domain being purged. With a single domain, the numbers are blank and the line reads [/] Purge Everything for <domain>.... This is cosmetic. |
"success":true |
Cloudflare accepted the request. |
"success":false with an errors list |
Cloudflare refused the request. The error text says why. |
The command does not read Cloudflare’s reply, so it always finishes the same way whether or not the purge worked. Check the reply for "success":true.
If the domain isn’t hosted on this server (no /home/<domain>/www folder), the command prints nothing.
Log
Each run appends one line to /var/log/go/purge.log:
[Nov 21 12:00:00]# purge example.com
See the full reference at /go/purge and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
