kinto-attachment icon indicating copy to clipboard operation
kinto-attachment copied to clipboard

Remove files on flush

Open leplatrem opened this issue 9 years ago • 2 comments
trafficstars

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

leplatrem avatar Dec 01 '15 11:12 leplatrem

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

Natim avatar Dec 01 '15 11:12 Natim

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!)

leplatrem avatar Jun 29 '16 07:06 leplatrem