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 Identifier 'Card' is imported but never used. eslint(no-unused-vars) app/(dashboard)/dashboard/billing/page.tsx:9 | app/(dashboard)/dashboard/billing/page.tsx:9 |
| Warning | Warning Identifier 'CardContent' is imported but never used. eslint(no-unused-vars) app/(dashboard)/dashboard/billing/page.tsx:10 | app/(dashboard)/dashboard/billing/page.tsx:10 |
| Warning | Warning Identifier 'CardDescription' is imported but never used. eslint(no-unused-vars) app/(dashboard)/dashboard/billing/page.tsx:11 | app/(dashboard)/dashboard/billing/page.tsx:11 |
| Warning | Warning Identifier 'CardHeader' is imported but never used. eslint(no-unused-vars) app/(dashboard)/dashboard/billing/page.tsx:12 | app/(dashboard)/dashboard/billing/page.tsx:12 |
| Warning | Warning Identifier 'CardTitle' is imported but never used. eslint(no-unused-vars) app/(dashboard)/dashboard/billing/page.tsx:13 | app/(dashboard)/dashboard/billing/page.tsx:13 |
| Warning | Warning Identifier 'Card' is imported but never used. eslint(no-unused-vars) app/(dashboard)/dashboard/settings/loading.tsx:1 | app/(dashboard)/dashboard/settings/loading.tsx:1 |
| Warning | Warning Imported module should be assigned import(no-unassigned-import) app/(docs)/docs/[[...slug]]/page.tsx:10 | app/(docs)/docs/[[...slug]]/page.tsx:10 |
| Warning | Warning 'doc' is already declared in the upper scope. eslint(no-shadow) app/(docs)/docs/[[...slug]]/page.tsx:24 | app/(docs)/docs/[[...slug]]/page.tsx:24 |
| Warning | Warning Expected expression to be used eslint(no-unused-expressions) app/(docs)/docs/[[...slug]]/page.tsx:27 | app/(docs)/docs/[[...slug]]/page.tsx:27 |
| Warning | Warning Imported module should be assigned import(no-unassigned-import) app/(docs)/guides/[...slug]/page.tsx:11 | app/(docs)/guides/[...slug]/page.tsx:11 |
| Warning | Warning 'guide' is already declared in the upper scope. eslint(no-shadow) app/(docs)/guides/[...slug]/page.tsx:26 | app/(docs)/guides/[...slug]/page.tsx:26 |
| Warning | Warning Expected expression to be used eslint(no-unused-expressions) app/(docs)/guides/[...slug]/page.tsx:29 | app/(docs)/guides/[...slug]/page.tsx:29 |
| Warning | Warning Use `Array#toSorted()` instead of `Array#sort()`. unicorn(no-array-sort) app/(docs)/guides/page.tsx:17 | app/(docs)/guides/page.tsx:17 |
| Warning | Warning Unexpected dangling '_' in '`_id`'. eslint(no-underscore-dangle) app/(docs)/guides/page.tsx:31 | app/(docs)/guides/page.tsx:31 |
| Warning | Warning Imported module should be assigned import(no-unassigned-import) app/(marketing)/[...slug]/page.tsx:6 | app/(marketing)/[...slug]/page.tsx:6 |
| Warning | Warning 'page' is already declared in the upper scope. eslint(no-shadow) app/(marketing)/[...slug]/page.tsx:21 | app/(marketing)/[...slug]/page.tsx:21 |
| Warning | Warning Expected expression to be used eslint(no-unused-expressions) app/(marketing)/[...slug]/page.tsx:24 | app/(marketing)/[...slug]/page.tsx:24 |
| Warning | Warning Imported module should be assigned import(no-unassigned-import) app/(marketing)/blog/[...slug]/page.tsx:6 | app/(marketing)/blog/[...slug]/page.tsx:6 |
| Warning | Warning 'post' is already declared in the upper scope. eslint(no-shadow) app/(marketing)/blog/[...slug]/page.tsx:24 | app/(marketing)/blog/[...slug]/page.tsx:24 |
| Warning | Warning Expected expression to be used eslint(no-unused-expressions) app/(marketing)/blog/[...slug]/page.tsx:27 | app/(marketing)/blog/[...slug]/page.tsx:27 |
| Warning | Warning Unexpected dangling '_' in '`_id`'. eslint(no-underscore-dangle) app/(marketing)/blog/[...slug]/page.tsx:126 | app/(marketing)/blog/[...slug]/page.tsx:126 |
| Warning | Warning Use `Array#toSorted()` instead of `Array#sort()`. unicorn(no-array-sort) app/(marketing)/blog/page.tsx:15 | app/(marketing)/blog/page.tsx:15 |
| Warning | Warning Unexpected dangling '_' in '`_id`'. eslint(no-underscore-dangle) app/(marketing)/blog/page.tsx:36 | app/(marketing)/blog/page.tsx:36 |
| Warning | Warning Maintainability: needs improvement (FTA score 60.2, cyclomatic 4) fta/maintainability app/(marketing)/page.tsx | app/(marketing)/page.tsx |
| Warning | Warning Catch parameter 'error' is caught but never used. eslint(no-unused-vars) app/(marketing)/page.tsx:30 | app/(marketing)/page.tsx:30 |