Danger zone

A danger zone is one bordered block at the foot of a settings page for an action that cannot be undone, such as deleting a workspace.

Previewapps/web/components/ui/KbDangerZone.tsx

Delete with a confirmation

Delete workspace

Permanently deletes this workspace, including flows, contacts, visitors, messages and API keys. This cannot be undone.
Show code
<KbDangerZone title="Delete workspace" description="...">
  <KbButton variant="danger">Delete workspace…</KbButton>
</KbDangerZone>