Hey, how would I make sure that when a record is d...
# help
k
Hey, how would I make sure that when a record is deleted, the associated files from storage are deleted too?
n
Hello ! This thread has been automatically created from your message in a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
g
You have to delete the files with storage calls currently. In this github thread https://github.com/supabase/supabase/discussions/3124#discussioncomment-1399576 I respond way down, showing how I do it with a trigger function and http call to storage. This code is triggered when my note record is deleted and I want to remove the attached images to it.
n
Kasper (2022-03-23)
k
I'll look into that, thank you so much!! <3