Curl Shell Script To Purge Cache From Bitgravity Content Delivery Network

in Categories Networking last updated May 22, 2012

A content delivery network or content distribution network (CDN) is a system of computers containing copies of data, placed at various points in a network so as to maximize bandwidth for access to the data from clients throughout the network. Please note that the following script will only work with bitgravity CDN. You need to get API access keys using bitgravity portal.

How do I access this script?

Simply run it as follows to purge a cdn url called
$ ./script /static/css/layout.css
Sample outputs:

How do I purge lage number of urls?

Create a text file called urls.txt with urls as follows one per line:

Run the script as follows:

Run it as follows:
$ ./

Share this on: