Skip to content

Instantly share code, notes, and snippets.

@booo
Created May 8, 2014 19:42
Show Gist options
  • Save booo/5978ace7ccd5c3ccf7d3 to your computer and use it in GitHub Desktop.
Save booo/5978ace7ccd5c3ccf7d3 to your computer and use it in GitHub Desktop.
_rev=$(curl "http://api.openwifimap.net/db/$1" \
| python -c 'import json,sys;print(json.load(sys.stdin)["_rev"])')
curl -X DELETE "http://openwifimap.net/openwifimap/$1?rev=$_rev"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment