Hey, how would I make sure that when a record is deleted, the associated files from storage are deleted too?
n
Needle
03/23/2022, 9:58 PM
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
garyaustin
03/23/2022, 10:08 PM
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.