Sucuri API v2 — Clear Cache
API v2 - Clear Cache (clear_cache)
Clears the Website Firewall cache for the site. Reflected live immediately.
sh
curl 'https://waf.sucuri.net/api?v2' \
--data 'k=API_KEY' \
--data 's=API_SECRET' \
--data 'a=clear_cache'
API v2 - Clear Cache per File (clear_cache + file)
Removes a single file from the WAF cache. Same a=clear_cache action — add the file parameter to scope to one path.
sh
curl 'https://waf.sucuri.net/api?v2' \
--data 'k=API_KEY' \
--data 's=API_SECRET' \
--data 'a=clear_cache' \
--data 'file=FILE_PATH'