© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
42 replies
Idris

Deleting files from db

Hi, I want to delete files from the DB, so I will need to use pg net.
I want to delete files attached to tasks, when the task gets deleted. I was thinking 2 approaches. Sending the DELETE request on a trigger when the task gets deleted.
Or doing nothing and have a nightly cron job delete them.

I suppose the second one is better since the first one has no gaurentee since the request with pg net are fire and forget so cant rollback. But would love to hear your thoughts.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Deleting files from storage via CRON
SupabaseSSupabase / help-and-questions
4y ago
Deleting From Storage in Python
SupabaseSSupabase / help-and-questions
13mo ago
Can't connect to my remote db from my local dbeaver
SupabaseSSupabase / help-and-questions
13mo ago
Storage usage limits persist after deleting files via SQL
SupabaseSSupabase / help-and-questions
2mo ago