Kinto / kinto-attachment

Attach files to Kinto records
https://kinto.github.io/kinto-attachment/
Apache License 2.0
43 stars 10 forks source link

Remove files on flush #23

Open leplatrem opened 8 years ago

leplatrem commented 8 years ago

If we want to enable this plugin on the demo server, we need to remove files when the server is flushed.

Requires https://github.com/Kinto/kinto/issues/309

Natim commented 8 years ago

We could also add the rm -fr /tmp/attachment in the cron as we do with redis-cli flushall

leplatrem commented 8 years ago

I realize that the flush event is sent once each backend is flushed. I have thus no way to iterate on existing attachments to remove them!

I can't rm -rf the whole folder (nor the whole S3 bucket!)