© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
1 reply
floyare

Run plpgsql function after 7 days from trigger.

So I had an idea for handling banned users. When I update
is_banned
is_banned
row from user's profile from profiles table It would hide his posts that are connected by his uuid with images table. Now I want to make something like deletion his profile and posts from database after 7 days. Is it even possible? I know maybe database triggers with functions may do a trick but I'm not sure. Any ideas?
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

Trigger Function
SupabaseSSupabase / help-and-questions
4y ago
Calling edge function from database trigger
SupabaseSSupabase / help-and-questions
13mo ago
Edge function <> Trigger
SupabaseSSupabase / help-and-questions
13mo ago
Trigger function help
SupabaseSSupabase / help-and-questions
3y ago