'Purge an image (by url) from imgix.
Reference: http://www.imgix.com/docs/tutorials/purging-images
Note that as mentioned in the imgix docs, in order to remove
an image, this function should be used *after* already
removing the image from our source, or imgix will just re-fetch
and replace the image with a new copy even after purging.'

def purge_url(self, url):

    requests.post('https://api.imgix.com/v2/image/purger', auth=(g.secrets['imgix_api_key'], ''), data={'url': url})
