[ckan-dev] Remove private datasets
Ian Ward
ian at excess.org
Mon Jan 9 14:00:44 UTC 2017
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
>
More information about the ckan-dev
mailing list