[ckan-dev] Remove private datasets

Natalia Queiroz queiroz.nati at gmail.com
Tue Jan 10 18:58:55 UTC 2017


Thanks Ian

On Mon, Jan 9, 2017 at 12:00 PM, Ian Ward <ian at excess.org> wrote:

> Hello!
>
> If you're using CKAN 2.6 you can get private datasets from the
> package_search API call, e.g.:
>
> {YOUR_CKAN}/api/action/package_search?include_private=true&q=private:true
>
> With the ckanapi CLI you can delete all your private datasets with
> this one-liner, just add -c or -r and -a options if you're not running
> from the server directory containing development.ini:
> $ ckanapi action package_search include_private=true q=private:true -j
> | ckanapi delete datasets
>
> On Mon, Jan 9, 2017 at 7:15 AM, Natalia Queiroz <queiroz.nati at gmail.com>
> wrote:
> > Hello Ckan users,
> >
> > is there some way to remove all private datasets once ai once?
> >
> > I have many private datasets to remove and need to remove all them.
> >
> > Regards,
> >
> > --
> >
> >
> > Natália Oliveira
> >
> > _______________________________________________
> > ckan-dev mailing list
> > ckan-dev at lists.okfn.org
> > https://lists.okfn.org/mailman/listinfo/ckan-dev
> > Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> >
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>



-- 


Natália Oliveira
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20170110/ea7618e9/attachment-0003.html>


More information about the ckan-dev mailing list