Home / Function/ OrganizationDeletePanel() — supabase Function Reference

OrganizationDeletePanel() — supabase Function Reference

Architecture documentation for the OrganizationDeletePanel() function in OrganizationDeletePanel.tsx from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/studio/components/interfaces/Organization/GeneralSettings/OrganizationDeletePanel.tsx lines 8–35

export const OrganizationDeletePanel = () => {
  const { data: selectedOrganization } = useSelectedOrganizationQuery()

  return (
    <ScaffoldSection isFullWidth>
      <ScaffoldSectionTitle className="mb-4">Danger Zone</ScaffoldSectionTitle>
      {selectedOrganization?.managed_by !== 'vercel-marketplace' ? (
        <Admonition
          type="destructive"
          title="Deleting this organization will also remove its projects"
          description="Make sure you have made a backup of your projects if you want to keep your data"
        >
          <DeleteOrganizationButton />
        </Admonition>
      ) : (
        <PartnerManagedResource
          managedBy={MANAGED_BY.VERCEL_MARKETPLACE}
          resource="Organizations"
          cta={{
            installationId: selectedOrganization?.partner_id,
            path: '/settings',
            message: 'Delete organization in Vercel Marketplace',
          }}
        />
      )}
    </ScaffoldSection>
  )
}

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free