Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove files on flush #23

Open
leplatrem opened this issue Dec 1, 2015 · 2 comments
Open

Remove files on flush #23

leplatrem opened this issue Dec 1, 2015 · 2 comments

Comments

@leplatrem
Copy link
Contributor

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

Requires Kinto/kinto#309

@Natim
Copy link
Member

Natim commented Dec 1, 2015

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

@leplatrem
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants