clear-cache.sh 294 B

12345678910
  1. #!/bin/bash
  2. CF_KEY=aaaaaaaaaaaaaaaaaa
  3. CF_EMAIL=aaaaaaa@gmail.com
  4. CF_ZONE=bbbbbbbb
  5. curl -H"X-Auth-Email: $CF_EMAIL" -H"X-Auth-Key: $CF_KEY" \
  6. -X DELETE https://api.cloudflare.com/client/v4/zones/$CF_ZONE/purge_cache \
  7. -H"Content-Type: application/json" \
  8. -d '{"purge_everything": true}'