© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
15 replies
wolf5

Question about RLS policy

I'd like to setup RLS policy only indicating that a row is allowed to delete when a referred row (by a foreign key) is deleted.

For example, I have two table, one is
user
user
. another is
article
article

When a row in a
user
user
table is deleted, I want to allow the
article
article
table to delete all the rows connected by a foreign key with the user.

How do you write the USING expression??
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

RLS Policy
SupabaseSSupabase / help-and-questions
4mo ago
Restrictive RLS policy
SupabaseSSupabase / help-and-questions
2mo ago
RLS policy help
SupabaseSSupabase / help-and-questions
3y ago
Quick question about RLS join policies
SupabaseSSupabase / help-and-questions
14mo ago