Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
5 lines (5 sloc) 197 Bytes
import json, sys, os
d = json.load(sys.stdin)['assets']
for a in d:
if a['name'].startswith(sys.argv[1]):
os.system('curl -u yihui:' + os.getenv('GH_TOKEN') + ' -X DELETE ' + a['url'])
You can’t perform that action at this time.