[ECODP-dev] Purging history
Dimitrios Mexis
dimitrios.mexis at tenforce.com
Wed May 22 09:09:47 UTC 2013
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/dfa317e9/attachment.html>
More information about the ecodp-dev
mailing list