Check each one before you remove it
Knip finds these from the entry points Agnes works out for the repository. Code loaded by name, by a tool's config, by tests or from outside the repository looks unused too, and removing it breaks the app.
git rm -- \ 'app/api/auth/[...nextauth]/_route.ts' \ components/ui/accordion.tsx \ components/ui/aspect-ratio.tsx \ components/ui/badge.tsx \ components/ui/calendar.tsx \ components/ui/checkbox.tsx \ components/ui/collapsible.tsx \ components/ui/command.tsx \ components/ui/context-menu.tsx \ components/ui/dialog.tsx \ components/ui/hover-card.tsx \ components/ui/menubar.tsx \ components/ui/navigation-menu.tsx \ components/ui/popover.tsx \ components/ui/progress.tsx \ components/ui/radio-group.tsx \ components/ui/scroll-area.tsx \ components/ui/select.tsx \ components/ui/separator.tsx \ components/ui/sheet.tsx \ components/ui/slider.tsx \ components/ui/switch.tsx \ components/ui/tabs.tsx \ components/ui/textarea.tsx \ components/ui/toggle.tsx \ components/ui/tooltip.tsx
components/icons.tsx: type Icon components/pager.tsx: getPagerForDoc, flatten components/sidebar-nav.tsx: DocsSidebarNavItems components/ui/alert-dialog.tsx: AlertDialogTrigger components/ui/dropdown-menu.tsx: DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup components/ui/input.tsx: type InputProps components/ui/toast.tsx: ToastAction components/ui/use-toast.ts: reducer
| Severity | Finding | Location |
|---|---|---|
| Warning | Warning Unused file: components/ui/navigation-menu.tsx knip/unused-file · medium confidence components/ui/navigation-menu.tsx | components/ui/navigation-menu.tsx |
| Warning | Warning Unused file: components/ui/popover.tsx knip/unused-file · medium confidence components/ui/popover.tsx | components/ui/popover.tsx |
| Warning | Warning Unused file: components/ui/progress.tsx knip/unused-file · medium confidence components/ui/progress.tsx | components/ui/progress.tsx |
| Warning | Warning Unused file: components/ui/radio-group.tsx knip/unused-file · medium confidence components/ui/radio-group.tsx | components/ui/radio-group.tsx |
| Warning | Warning Parameter 'children' is declared but never used. Unused parameters should start with a '_'. eslint(no-unused-vars) components/ui/radio-group.tsx:26 | components/ui/radio-group.tsx:26 |
| Warning | Warning Unused file: components/ui/scroll-area.tsx knip/unused-file · medium confidence components/ui/scroll-area.tsx | components/ui/scroll-area.tsx |
| Warning | Warning Unused file: components/ui/select.tsx knip/unused-file · medium confidence components/ui/select.tsx | components/ui/select.tsx |
| Warning | Warning Unused file: components/ui/separator.tsx knip/unused-file · medium confidence components/ui/separator.tsx | components/ui/separator.tsx |
| Warning | Warning Unused file: components/ui/sheet.tsx knip/unused-file · medium confidence components/ui/sheet.tsx | components/ui/sheet.tsx |
| Warning | Warning Parameter 'children' is declared but never used. Unused parameters should start with a '_'. eslint(no-unused-vars) components/ui/sheet.tsx:45 | components/ui/sheet.tsx:45 |
| Warning | Warning Unused file: components/ui/slider.tsx knip/unused-file · medium confidence components/ui/slider.tsx | components/ui/slider.tsx |
| Warning | Warning Unused file: components/ui/switch.tsx knip/unused-file · medium confidence components/ui/switch.tsx | components/ui/switch.tsx |
| Warning | Warning Unused file: components/ui/tabs.tsx knip/unused-file · medium confidence components/ui/tabs.tsx | components/ui/tabs.tsx |
| Warning | Warning Unused file: components/ui/textarea.tsx knip/unused-file · medium confidence components/ui/textarea.tsx | components/ui/textarea.tsx |
| Warning | Warning Unused file: components/ui/toggle.tsx knip/unused-file · medium confidence components/ui/toggle.tsx | components/ui/toggle.tsx |
| Warning | Warning Unused file: components/ui/tooltip.tsx knip/unused-file · medium confidence components/ui/tooltip.tsx | components/ui/tooltip.tsx |
| Warning | Warning 'toast' is already declared in the upper scope. eslint(no-shadow) components/ui/use-toast.ts:96 | components/ui/use-toast.ts:96 |
| Warning | Warning 'props' is already declared in the upper scope. eslint(no-shadow) components/ui/use-toast.ts:143 | components/ui/use-toast.ts:143 |
| Warning | Warning Found extra effect dependencies react(exhaustive-effect-dependencies) components/ui/use-toast.ts:180 | components/ui/use-toast.ts:180 |
| Warning | Warning Unexpected dangling '_' in '`_raw`'. eslint(no-underscore-dangle) contentlayer.config.js:11 | contentlayer.config.js:11 |
| Warning | Warning Unexpected dangling '_' in '`_raw`'. eslint(no-underscore-dangle) contentlayer.config.js:15 | contentlayer.config.js:15 |
| Warning | Warning Calling setState synchronously within an effect can trigger cascading renders react(set-state-in-effect) hooks/use-mounted.ts:7 | hooks/use-mounted.ts:7 |
| Warning | Warning Unexpected `any`. Specify a different type. typescript(no-explicit-any) lib/auth.ts:17 | lib/auth.ts:17 |
| Warning | Warning Do not use @ts-nocheck because it alters compilation errors. typescript(ban-ts-comment) lib/subscription.ts:1 | lib/subscription.ts:1 |
| Warning | Warning Do not use @ts-nocheck because it alters compilation errors. typescript(ban-ts-comment) lib/toc.ts:1 | lib/toc.ts:1 |