[ckan-dev] purging organizations

Sean Hammond sean.hammond at okfn.org
Wed Sep 4 11:06:16 UTC 2013


>  Is there a way to purge organizations? I have deleted an organization
>  and I'm trying to create it again with the same title but with a new
>  name. I'm getting a 409 conflict response when trying to create it
>  via the API. Similarly I can't add it via the web interface.

Use the organization_purge API action:

http://docs.ckan.org/en/latest/api.html#ckan.logic.action.delete.organization_purge

Unfortunately this action is only in the current development version of
CKAN, not 2.1.

> Also, I notice the web interface forces underscores in the
> organization name to become dashes, but there is no restriction on
> using underscores when creating an organization with
> organization_create().

Sounds like a bug. Pull request welcome!




More information about the ckan-dev mailing list