[ECODP-dev] Purging history

John Glover john.glover at okfn.org
Wed May 22 09:06:58 UTC 2013


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/4a3cb21c/attachment.html>


More information about the ecodp-dev mailing list