[ckan-dev] Deleting an organization doesn't really delete it.

Ian Ward ian at excess.org
Thu Feb 20 15:34:57 UTC 2014


On Thu, Feb 20, 2014 at 9:10 AM, Stéphane Guidoin <stephane at opennorth.ca> wrote:
> From something I read in the doc, a command like that might work, but I
> never tried it:
>
> echo '{"id":"my-org"}' | /usr/lib/ckan/bin/paster --plugin=ckan post -c
> /etc/ckan/production.ini /api/action/organization_purge
>
> However, using the API would not be much more difficult. A simple curl
> command should make it:
>
> curl http://your.url.com/api/action/organization_purge -H
> "X-CKAN-API-Key:111-222-333-444"  -d  '{"id": "my-org"}'

Yet another option is to use ckanapi's new command line interface:

ckanapi action organization_purge id=my-org

(add "-r http://your.url.com/ -a 111-222-333-444" if you're working remotely)

Ian



More information about the ckan-dev mailing list