Home / Function/ revalidateDelete() — supabase Function Reference

revalidateDelete() — supabase Function Reference

Architecture documentation for the revalidateDelete() function in revalidateEvent.ts from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/cms/src/collections/Events/hooks/revalidateEvent.ts lines 40–54

export const revalidateDelete: CollectionAfterDeleteHook<Event> = async ({
  doc,
  req: { context },
}) => {
  if (!context.disableRevalidate) {
    const path = `/events/${doc?.slug}`
    try {
      const { revalidatePath, revalidateTag } = await import('next/cache')
      revalidatePath(path)
      revalidateTag('events-sitemap')
    } catch {}
  }

  return doc
}

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free