[ckan-dev] Purge a deleted group CKAN 2.3

Nigel Babu nigel.babu at okfn.org
Tue Mar 17 08:59:42 UTC 2015


There is an API end point for it, but no UI frontend yet
http://docs.ckan.org/en/latest/api/index.html#ckan.logic.action.delete.group_purge

Nigel Babu
Senior Sysadmin, Open Knowledge

On 17 March 2015 at 01:38, Jorge Pantoja <jorgepantojam at gmail.com> wrote:

> Hi David,
>
> I was wondering whether there is something like "ckan-admin/trash" for
> groups, because a ckan user told me that problem.
>
> Thanks for the help,
>
> Jorge
>
>
> On Mon, Mar 16, 2015 at 2:19 PM, David Miller <david at openhealthcare.org.uk
> > wrote:
>
>> Do you consider `$ sudo -u postgres psql`  to be the CKAN interface?
>>
>> update group_revision set state='active' where name='my-group' and current=true;
>> update "group" set state='active' where name='my-group';
>>
>>
>> Sure you could write a fairly trivial paster command.
>>
>> On 16 March 2015 at 19:14, Jorge Pantoja <jorgepantojam at gmail.com> wrote:
>>
>>> Hello everyone,
>>>
>>> How I can purge a group that has a "deleted" state on the database?
>>>
>>> I need this because i'm trying to create a group, using the name of a
>>> deleted group by error, but i can't.
>>>
>>> I solved this through the database (update public.group set
>>> name='transporte.old' where name='transporte';).
>>>
>>>
>>> Is there a way to do this through the ckan interface?
>>>
>>>
>>> Thanks for your help,
>>>
>>> Jorge
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>>
>> --
>> Love regards etc
>>
>> David Miller
>> CTO Open Healthcare UK
>> www.openhealthcare.org.uk
>> @thatdavidmiller <http://twitter.com/thatdavidmiller>
>> 07854 880 883
>>
>> _______________________________________________
>> 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/20150317/49f33beb/attachment-0003.html>


More information about the ckan-dev mailing list