[ckan-dev] Manually purge datasets

Matt Leduc matt at mattleduc.com
Fri Apr 15 14:10:55 UTC 2016


There's an open issue that is related to this:
https://github.com/ckan/ckan/issues/2438

Hopefully someone will have time to implement it in the future, but at the
moment the command line is the way to go.

M

On Fri, Apr 15, 2016 at 5:26 AM, Carl Lange <carl at derilinx.com> wrote:

> Hi,
>
> Thanks for the tip about doing it from the command line. I seemingly have
> 250+ deleted datasets, and while the button on the page wouldn't work,
> writing a script to run the command worked fine.
>
> I'd still like to raise the idea of moving 'deleted' dataset's ids/names
> out of rotation so that if I delete (but not purge) a dataset called
> 'population-2014', I can still create a new dataset with the same name.
>
> Cheers,
> Carl
>
> On 15 April 2016 at 09:52, Hildegard Gerlach <
> hildegard.gerlach at jrc.ec.europa.eu> wrote:
>
>> Hi,
>>
>> I think the easiest way is to go to the site
>>
>> http://*yourhostname*/ckan-admin/trash
>>
>> From there you should be able to purge them. (I am still using ckan 2.2,
>> so I am not sure if anything has changed in the meantime).
>>
>> Otherwise you can use the paster command, but you have to know the id of
>> the datasets.
>>
>> Something like that
>>
>> paster --plugin=ckan dataset purge 4a0b4385-4483-4bc3-9a1c-c0d238b90808
>> -c /etc/ckan/production.ini
>>
>> Hope it helps.
>>
>> Hilde
>>
>>
>> On 4/14/2016 9:36 PM, Carl Lange wrote:
>>
>> Hi,
>>
>> I have a lot of datasets in the trash. I can't seem to purge them - I hit
>> the button, the page times out, and nothing changes. :-(
>> Is there a way for me to purge these manually? Like, going into the DB
>> and doing it?
>>
>> Furthermore, I think it would be good that if a dataset is deleted, its
>> id/name is changed to something else, or somehow taken out of rotation.
>> This causes problems if I'm trying to add a new dataset with the same name
>> as the deleted - but not purged - dataset.
>>
>> Cheers,
>> Carl
>>
>>
>> _______________________________________________
>> ckan-dev mailing listckan-dev at lists.okfn.orghttps://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
>>
>>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160415/76e2145e/attachment-0003.html>


More information about the ckan-dev mailing list