[ckan-dev] Purge all packages?
Toby Dacre
toby.okfn at gmail.com
Tue Jan 15 08:54:36 UTC 2013
On 14 January 2013 11:01, Sean Hammond <sean.hammond at okfn.org> wrote:
> > What is the recommended way to quickly purge all packages and
> > resources from CKAN without removing users and groups?
>
> You first need to mark all the datasets as deleted. I'm not sure if
> there's a provided way to delete _all_ datasets with a single command or
> click. You might have to write a simple script to do that yourself. You
> can do it using the package_delete apiv3 action, or the paster dataset
> delete command.
>
Just to say that the bulk deletion of datasets (per organization) is a
feature currently in development should be in ckan 2.0
>
> Once you've deleted the datasets you can also purge them one-by-one
> using the paster dataset purge command, but if you go to
> /ckan-admin/trash there is a Purge them all button that can purge all
> deleted datasets and revisions.
>
> I assume that purging datasets also purges their resources.
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130115/3a320767/attachment-0001.html>
More information about the ckan-dev
mailing list