[ECODP-dev] Purging history
John Glover
john.glover at okfn.org
Wed May 22 09:19:27 UTC 2013
Hi Dimitrios,
There is no current API call that will purge all deleted datasets for a
given publisher.
There is a paster command that can purge individual datasets, or you can
purge all deleted datasets using the web UI at
http://odp.tenforce.com/data/ckan-admin/trash.
John
On 22 May 2013 11:09, Dimitrios Mexis <dimitrios.mexis at tenforce.com> wrote:
> Hi John,
>
> Then it is my mistake on the chosen API, but then what should I use in
> order to delete the marked deleted packages based on the publiusher ?
>
>
> On Wed, May 22, 2013 at 11:06 AM, John Glover <john.glover at okfn.org>wrote:
>
>> Hi Dimitrios,
>>
>> I'm not entirely clear on what you're trying to purge here, are you
>> purging datasets, the publisher resource revision history, or both?
>> That API call should purge the resource revision history for that
>> publisher, but it does not purge deleted datasets from the database.
>>
>> John
>>
>>
>> On 16 May 2013 09:29, Dimitrios Mexis <dimitrios.mexis at tenforce.com>wrote:
>>
>>> Hello John,
>>>
>>> with regard also to the previous post about not seeing any live update
>>> on a sanco package from rdf2ckan, perhaps the next one might have same root
>>> cause?
>>>
>>> I notice that deleted packages do not get deleted from purge command,
>>> I tried also with this curl command for a jrc publisher :
>>> [root at ecodp-gr04 users]# curl -X POST
>>> http://192.168.33.128/data/api/action/purge_revision_history -d
>>> "{\"group\":\"jrc\"}" -H "Authorization:
>>> 21f7443a-8b97-4406-b49e-39c2fc4d76b4"
>>> {"help": "\n Purge a given publisher's unused revision history.\n\n
>>> :param group: the name or id of the publisher\n :type group: string\n\n
>>> :returns: number of resources and revisions purged.\n :rtype:
>>> dictionary\n ", "success": true, "result": {"number_resources_deleted":
>>> 0, "number_revisions_deleted": 0}}[root at ecodp-gr04 users]#
>>>
>>>
>>>
>>> Any suggestion?
>>> Kind regards
>>> Dimitrios
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130522/1012837a/attachment.html>
More information about the ecodp-dev
mailing list