[ECODP-dev] Purging deleted datasets for a given publisher

John Glover john.glover at okfn.org
Tue Sep 3 14:33:48 UTC 2013


Hi Bert,

All of the deleted datasets for a given publisher can now be purged using a
single command. This can be done in two ways:

1. Using the command line (with virtualenv activated):

paster --plugin=ckanext-ecportal ecportal purge-publisher-datasets
<publisher name> -c <path to CKAN config file>

2. Using the API:

As a sysadmin, POST JSON {“name”: “<publisher name>”} to
/api/action/purge_publisher_datasets.

eg:
curl http://212.71.25.148/data/api/action/purge_publisher_datasets -d
'{"name": "<publisher name>"}' -H 'Authorization: <API Key>’

This functionality is in ckanext-ecportal master branch and has been
deployed to the test server.

Regards,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130903/a88ff6fb/attachment.html>


More information about the ecodp-dev mailing list