Skip to content

Instantly share code, notes, and snippets.

@nigelbabu
Created March 10, 2014 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nigelbabu/9457277 to your computer and use it in GitHub Desktop.
Save nigelbabu/9457277 to your computer and use it in GitHub Desktop.
Purging a group
curl -H 'Authorization: yourapikeyhere' http://demo.ckan.org/api/action/group_purge -d '{"id": "test-test-test-test-tes-t"}'
# Alternatively, you can also use the ckanapi
import ckanapi
ckan = ckanapi.RemoteCKAN('http://demo.ckan.org', apikey='yourapikey')
result = ckan.action.group_purge(id='test-test-test-test')
print result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment