Delay deletion files on s3 #1717
Comments
👍, I have a model that |
We are just enabled |
Ok @dmitry, but later how can I delete the preserved files definitely? |
I guess there are no easy ways to do that. I would do that with paranoia gem (https://github.com/radar/paranoia) and https://github.com/thoughtbot/paperclip/blob/master/lib/paperclip/attachment.rb#L557 embedded in a model callback before real deletion, that can happen in a recurring job (every month or week). Currently we are just storing files and database links (through paranoia like gem). Once we want to destroy all them, we just will need to write some small little modified code taken from |
This issue describes a very specific use case. I suggest that you ask about it in https://stackoverflow.com/questions/tagged/paperclip, which will get attention Closing for now, and happy to continue discussion or reopen if we find improvements to make in paperclip itself. Thank you for your input! ❤️ |
I'm trying to find a way to delay also the deletion of s3 files.
Do anyone have a solution for that?
Thanks in advance!
Alberto
The text was updated successfully, but these errors were encountered: