Home / Function/ revalidateDelete() — supabase Function Reference

revalidateDelete() — supabase Function Reference

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

Entity Profile

Relationship Graph

Source Code

apps/cms/src/collections/Customers/hooks/revalidateCustomer.ts lines 42–56

export const revalidateDelete: CollectionAfterDeleteHook<Customer> = async ({
  doc,
  req: { context },
}) => {
  if (!context.disableRevalidate) {
    const path = `/customers/${doc?.slug}`
    try {
      const { revalidatePath, revalidateTag } = await import('next/cache')
      revalidatePath(path)
      revalidateTag('customers-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