[ckan-dev] FileStore - no deletion?

Cam Findlay cam at camfindlay.com
Sun Jan 28 22:03:15 UTC 2018


Could be good to bundle clean ups for both filestore and datastore into
this extension.

As Karen mentions our generic version of the Swiss cleanup command is
sitting at
https://github.com/data-govt-nz/ckanext-dia/blob/master/ckanext/dia/commands.py

Feel free to reuse.

C.


On 29 January 2018 at 08:57, Karen Turner <karen at catalyst.net.nz> wrote:

> Hi
>
> We the same behaviour when using datastore too.  I believe this is fixed
> in 2.7.
> You may be able to use modify this command
> https://github.com/opendata-swiss/ckanext-switzerland#command to delete
> unreferenced things from the file store. It is what we found and used to
> clear out the datastore.
>
> Cheers
> Karen
>
> On 28/01/18 16:17, 차우 wrote:
> > Hi,
> >
> > As far as I know, CKAN originally does not remove the uploaded files
> > from local filesystem, even when the resource or dataset has been
> > deleted. We developed this
> > extension https://github.com/pheaktra21/fileremove to solve this
> problem.
> >
> > Best regards,
> >
> > Chau.
> >
> >> On Jan 28, 2018, at 3:02 AM, Ladislav Nesnera <nesnera at email.cz
> >> <mailto:nesnera at email.cz>> wrote:
> >>
> >> Hi
> >> I'm trying to move the CKAN with enabled FileStore to new instance. On
> >> this occasion, I noticed that uploaded files aren't deleted from
> >> filesystem when a source or a dataset are deleted. Is it coused by my
> >> wrong FileStore settins or it's standard behavior?
> >>
> >> ;?
> >>
> >> <signature.asc>_______________________________________________
> _______________________________________________
> 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/20180129/ad71f8bf/attachment-0003.html>


More information about the ckan-dev mailing list