stavro / arc

:paperclip: Flexible file upload and attachment library for Elixir
1.16k stars 210 forks source link

Object deletion by scope #294

Open kanes115 opened 4 years ago

kanes115 commented 4 years ago

It would be nice to be able to delete files by scope (and not by a specific file name). There are use cases where you upload multiple files per scope and want to delete every file that is connected to it at some point. If that is somehow possible now, please refer me to a place in docs/code.

Environment

achempion commented 4 years ago

You mean, you want to have files deleted automatically as a callback of deleting base resource?

kanes115 commented 4 years ago

@achempion yes, all files connected with a given scope. Not necessarily on a callback (could be explicit).