-
-
Save lmarquine/af5f7407c914f8cce28a53d6dbc93e18 to your computer and use it in GitHub Desktop.
Clear Cloudflare cache from command line.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl -X DELETE "https://api.cloudflare.com/client/v4/zones/{$ZONE_ID}/purge_cache" \ | |
-H "X-Auth-Email: {$EMAIL}" \ | |
-H "X-Auth-Key: {$API_KEY}" \ | |
-H "Content-Type: application/json" \ | |
--data '{"purge_everything":true}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment