This repository has been archived on 2025-05-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
fastly-py/bin/purge_service
2014-05-10 19:36:31 +02:00

13 lines
231 B
Python

#!/usr/bin/env python
import sys, fastly
if len(sys.argv) < 3:
print "not enough arguments!"
sys.exit()
else:
_, auth_key, svc_key = sys.argv
api = fastly.API()
api.authenticate_by_key(auth_key)
api.purge_service(svc_key)