snippets.subscribeDeletes() — supabase Function Reference
Architecture documentation for the snippets.subscribeDeletes() function in Snippets.ts from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/Docs/Snippets.ts lines 205–224
subscribeDeletes: (listenerName: string, resourceId: string) => ({
title: 'Subscribe to deletes',
bash: {
language: 'bash',
code: `# Realtime streams are only supported by our client libraries`,
},
js: {
language: 'js',
code: `
const ${listenerName} = supabase.channel('custom-delete-channel')
.on(
'postgres_changes',
{ event: 'DELETE', schema: 'public', table: '${resourceId}' },
(payload) => {
console.log('Change received!', payload)
}
)
.subscribe()`,
},
}),
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free