Date: 2026-12-02
Scope: src/, scripts/, tools/, deploy/, docker/, docs/ (+ obvious root leftovers).
Method: Enumerate candidates → verify each with repo-wide search (type/export name, selector, filename, path).
Rule: Reflection / DI assembly scan / MediatR / EF migrations / DbHelper programmability / angular.json / CI Dockerfiles = USED. If unsure → Unsure, never Safe.
Not run: git, builds, docker, sql, deploy.
Claude review (2026-12-02): every Safe row re-checked with exact-path/import searches (git grep, excluding docs, miniz-old, .oldapp-audit). Result: 102 Safe rows confirmed; 1 moved to Unsure (DropSPandFuncQuery.sql). .oldapp-audit/ and __pycache__ are untracked local files.
All 10 .csproj files are in root Miniz.sln (no orphan projects).
| path | type | why unused (what you searched) |
|---|---|---|
Miniz/Miniz.sln | stale nested solution (~7 KB) | Subset of root Miniz.sln (omits Lib.Referral, ShareWeb). rg Miniz/Miniz.sln — no CI/workflow refs |
.oldapp-audit/ (entire dir: api.diff, GlobalUrl-old.ts, prompt.md, result.md) | audit scratch (~856 KB) | One-off old-app audit; docs explicitly say delete after. Not referenced by code/CI |
scripts/__pycache__/, tools/server/__pycache__/ | Python bytecode | Local cache; .gitignore already excludes __pycache__/*.pyc |
scripts/sql/companyid-precheck.sql | SQL (~3.5 KB) | rg companyid-precheck — zero hits (unlike companyid-index-inspect.sql, which docs cite) |
src/CoreLibraries/Lib.Core/Models/Request/DateRangeModel.cs | class | rg \bDateRangeModel\b — defining file only |
src/CoreLibraries/Lib.Core/Models/Resource/ImageVM.cs | class | rg \bImageVM\b — defining file only |
src/CoreLibraries/Lib.Core/Models/Request/RequestModel.cs | class | rg \bRequestModel\b in *.cs — defining file only |
src/CoreLibraries/Lib.Core/Models/Request/ProductModel.cs | class (ProductConstant) | rg \bProductConstant\b — defining file only |
src/CoreLibraries/Lib.Core/Models/Response/ErrorResponse.cs | class | rg \bErrorResponse\b in *.cs — defining file only (no new ErrorResponse) |
src/CoreLibraries/Lib.Core/Models/Response/PaginatedResponseModel.cs | class | rg \bPaginatedResponseModel\b — defining file only |
src/CoreLibraries/Lib.Core/Models/Response/LookupRequestModel.cs | class | rg \bLookupRequestModel\b — defining file only |
src/CoreLibraries/Lib.Core/Extensions/JwtExtensions/JwtExtension.cs | static helper | rg JwtExtension / GetFieldFromJwtToken — defining file only |
src/CoreLibraries/Lib.Core/Extensions/JsonConverters/DateOnlyJsonConverter.cs | JsonConverter | rg DateOnlyJsonConverter — no API AddJsonOptions registration |
src/CoreLibraries/Lib.Core/Extensions/JsonConverters/TimeOnlyJsonConverter.cs | JsonConverter | rg TimeOnlyJsonConverter — same |
src/CoreLibraries/Lib.S3Bucket/Model/ResourcePathModel.cs | class | rg ResourcePathModel — defining file only |
src/CoreLibraries/Lib.S3Bucket/Helpers/Resources/S3ResourceHelper.cs | static helper | rg S3ResourceHelper — defining file only |
src/Services/Miniz/Miniz.Domain/Enums/Referral/ReferralAttributionSource.cs | enum | rg ReferralAttributionSource — defining file only |
src/Services/Miniz/Miniz.Domain/Enums/UserManagement/FeedbackRatingFilterType.cs | enum | rg FeedbackRatingFilterType — defining file only |
src/Services/Miniz/Miniz.Domain/Enums/Analytics/AnalyticsEventCategoryHelper.cs | static helper | rg AnalyticsEventCategoryHelper — defining file only |
src/Services/Miniz/Miniz.Domain/ViewModels/Common/InvoiceItemViewModel.cs | VM | rg InvoiceItemViewModel — defining file only |
src/Services/Miniz/Miniz.Domain/ViewModels/Common/InvoiceTaxModel.cs | VM | rg InvoiceTaxModel — defining file only |
src/Services/Miniz/Miniz.Domain/ViewModels/InvestmentFund/InstallmentFundEntriesReceipt/InstallmentFundEntriesReceiptVM.cs | VM | rg InstallmentFundEntriesReceiptVM — defining file only |
src/Services/Miniz/Miniz.Infrastructure/Helpers/ObjectMapper.cs | static helper | rg ObjectMapper — defining file only (no interface → not DI-scanned as service) |
src/Services/Miniz/Miniz.Infrastructure/Helpers/SetDecimal.cs | static helper | rg SetDecimalAmount — defining file only |
src/Services/Miniz/Miniz.Infrastructure/Helpers/AppSettings.cs | POCO | rg \bAppSettings\b / IOptions<AppSettings> — defining file only; not bound in Program.cs |
src/Services/Miniz/Miniz.Infrastructure/Services/HttpRequestServices/ServiceModels/SendMessageWithFile.cs | DTO | rg SendMessageWithFile — defining file only |
src/Services/Miniz/Miniz.Infrastructure/Services/OTP/ServiceModels/ResendOTP/ResendOTPResponse.cs | DTO | rg ResendOTPResponse in Services — defining file only (mobile uses its own ResendOTPResponseModel) |
src/Services/Miniz/Miniz.Infrastructure/Services/PushNotification/ServiceModels/SendFCMResponse.cs | DTO | rg SendFCMResponse — defining file only |
src/Services/Miniz/Miniz.Infrastructure/Services/InvestmentFund/InstallmentFundEntry/ServiceModel/GetAllInstallmentFundEntriesRequestModel.cs | DTO | rg GetAllInstallmentFundEntriesRequestModel — defining file only |
src/Services/Miniz/Miniz.Application/Features/PaymentIntegration/SmePay/Commands/CreateToken/CreateTokenCommandHandler.cs | empty stub | Empty class; not IRequestHandler<>; rg CreateTokenCommandHandler — defining file only |
src/Services/Miniz/Miniz.Application/Features/PaymentIntegration/SmePay/Commands/CreateOrder/CreateOrderResponse.cs | unused DTO | Handlers return ResponseModel; type name only in this file |
src/Services/Miniz/Miniz.Application/Features/PaymentIntegration/SmePay/Commands/CheckStatus/CheckStatusResponse.cs | unused DTO | Same |
src/Services/Miniz/Miniz.Application/Features/PaymentIntegration/SmePay/Commands/CreateToken/CreateTokenResponse.cs | unused DTO | Same |
src/Services/Miniz/Miniz.Application/Features/Admin/OnboardingRegisteredUser/Commands/RegisterUser/RegisterUserCommandResponse.cs | unused DTO | Handler uses ResponseModel; type only here |
src/Presentations/WebApps/miniz/src/app/shared/components/header/widgets/header-bookmark/ | Angular component | HeaderBookmarkComponent / app-header-bookmark: not in header.component.ts imports or template |
src/Presentations/WebApps/miniz/src/app/shared/components/header/widgets/header-language/ | Angular component | Same for HeaderLanguageComponent / app-header-language |
src/Presentations/WebApps/miniz/src/app/shared/components/header/widgets/header-notification/ | Angular component | Same for HeaderNotificationComponent |
src/Presentations/WebApps/miniz/src/app/shared/components/header/widgets/mode/ | Angular component | Same for ModeComponent / app-mode |
src/Presentations/WebApps/miniz/src/app/shared/components/header/widgets/toggle-screen/ | Angular component | Same for ToggleScreenComponent |
src/Presentations/WebApps/miniz/src/app/shared/components/layout/full/ | Angular component | FullComponent / app-full / layout/full — no route or import |
src/Presentations/WebApps/miniz/src/app/components/jewellery-catalogue/popup/catalogue-analytics-modal/ | Angular component (~40 KB) | CatalogueAnalyticsModalComponent never opened/imported; live analytics is components/analytics/catalogue-analytics/ |
src/Presentations/WebApps/miniz/src/app/shared/services/cart.service.ts | Angular service | rg CartService — defining file only (providedIn: 'root' but never injected) |
src/Presentations/WebApps/miniz/src/app/shared/data/cart.ts | data | Only imported by dead cart.service.ts |
src/Presentations/WebApps/miniz/src/app/shared/data/order.ts | data | Only imported by cart.ts |
src/Presentations/WebApps/miniz/src/app/shared/interface/order.ts | interface | Only cart chain |
src/Presentations/WebApps/miniz/src/app/shared/models/ag-grid-pagination-config.model.ts | model | rg AgGridPaginationConfig — defining file only |
src/Presentations/WebApps/miniz/src/app/shared/models/pagination-base-model.model.ts | model | rg PaginationBaseModel / pagination-base-model — defining file only |
src/Presentations/WebApps/miniz/src/app/shared/config/web.config | misplaced IIS config (~530 B) | angular.json copies web.config from src/assets/config (dir missing); this file is never referenced |
src/Presentations/WebApps/miniz/public/assets/video/auth-bg.mp4 | asset (~3.1 MB) | rg auth-bg.mp4 — no hits; only unrelated .auth-bg SCSS class names |
src/Presentations/WebApps/miniz/public/assets/svg/logo/nishka_logo.svg | asset (~11 KB) | rg nishka_logo — zero hits in app |
src/Presentations/WebApps/miniz/public/assets/svg/logo/nishka_sidebar_logo.svg | asset (~29 KB) | rg nishka_sidebar — zero hits |
src/Presentations/WebApps/Miniz.ShareWeb/wwwroot/js/site.js | static JS (~227 B) | Not linked from _Layout.cshtml / Open.cshtml (rg site.js) |
src/Presentations/WebApps/Miniz.ShareWeb/Pages/Shared/_ValidationScriptsPartial.cshtml | Razor partial | Never @await Html.PartialAsync / <partial> (rg ValidationScriptsPartial) |
src/Presentations/MobileApps/Miniz/src/assets/icons/icChecked copy.svg | Finder duplicate (575 B) | Not in icons/index.ts; app imports icChecked.svg. rg "icChecked copy" — none |
src/Presentations/MobileApps/Miniz/src/assets/icons/icUnchecked copy.svg | Finder duplicate (587 B) | Same for icUnchecked.svg |
src/Presentations/MobileApps/Miniz/src/assets/icons/GradientCard.png | unused icon | Not in icons/index.ts; no basename refs outside icons folder |
src/Presentations/MobileApps/Miniz/src/assets/icons/TransactionCard.png | unused icon | Same |
src/Presentations/MobileApps/Miniz/src/assets/icons/TransactionCard.svg | unused icon | Same |
src/Presentations/MobileApps/Miniz/src/assets/icons/IcGiftVoucherView.svg | unused icon | Index imports IcGiftVoucher.svg, not View |
src/Presentations/MobileApps/Miniz/src/assets/icons/IcMapCardGradient.png | unused icon (~46 KB) | Not in index; no refs |
src/Presentations/MobileApps/Miniz/src/assets/icons/icRedDelete.svg | unused icon | Same |
src/Presentations/MobileApps/Miniz/src/assets/icons/icRedPayment.svg | unused icon | Same |
src/Presentations/MobileApps/Miniz/src/assets/icons/icRequestBackground.png | unused icon (~27 KB) | Same |
src/Presentations/MobileApps/Miniz/src/assets/icons/icMinizfirst.png | unused icon (~401 KB) | rg icMinizfirst — none |
src/Presentations/MobileApps/Miniz/src/assets/icons/icMinizSecond.png | unused icon (~452 KB) | Same |
src/Presentations/MobileApps/Miniz/src/assets/icons/icMinizThird.png | unused icon (~227 KB) | Same |
src/Presentations/MobileApps/Miniz/src/assets/icons/icMinizFourth.png | unused icon (~200 KB) | Same |
src/Presentations/MobileApps/Miniz/src/assets/icons/LeftArrowIcon.tsx | unused icon component | rg LeftArrowIcon — defining file only |
src/Presentations/MobileApps/Miniz/src/assets/icons/SparkleIcon.tsx | unused icon component | rg SparkleIcon — defining file only |
src/Presentations/MobileApps/Miniz/src/assets/icons/StarIcon.tsx | unused icon component | rg StarIcon — defining file only |
src/Presentations/MobileApps/Miniz/src/navigation/HomeTabNavigator.tsx | dead navigator | rg HomeTabNavigator — defining file only; not wired in MainNavigator |
src/Presentations/MobileApps/Miniz/src/navigation/EditPostNavigator.tsx | dead navigator | rg EditPostNavigator — defining file only |
src/Presentations/MobileApps/Miniz/src/navigation/Enquiry.tsx | dead navigator | Not imported (rg navigation/Enquiry); enquiry screens use other navigators |
src/Presentations/MobileApps/Miniz/src/navigation/useRouteTracking.tsx | unused hook | rg useRouteTracking — defining file only |
src/Presentations/MobileApps/Miniz/src/screens/Song/SongDetails.tsx | unregistered screen | Not in any navigator; SongList is registered but does not navigate here |
src/Presentations/MobileApps/Miniz/src/screens/Song/SongVideoPlayer.tsx | unregistered screen | Only targeted from dead SongDetails |
src/Presentations/MobileApps/Miniz/src/screens/LandingPage/Tabs/index.tsx | demo carousel | CircularCarousel demo; not imported by navigators / LandingPage |
src/Presentations/MobileApps/Miniz/src/screens/LandingPage/Tabs/list-item.tsx | demo helper | Only used by dead Tabs/index.tsx |
src/Presentations/MobileApps/Miniz/src/screens/LandingPage/hooks/index.ts | unused barrel | Hooks imported by direct path (landingPageSharedState etc.); barrel never imported |
src/Presentations/MobileApps/Miniz/src/components/CouponCountdown.tsx | unused component | rg CouponCountdown — defining file only |
src/Presentations/MobileApps/Miniz/src/components/UploadingLoad.tsx | unused component | rg UploadingLoad — defining file only |
src/Presentations/MobileApps/Miniz/src/components/BottomTabs/CustomBottomTab.tsx | unused tab bar | rg CustomBottomTab — defining file only |
src/Presentations/MobileApps/Miniz/src/components/BottomTabs/TabItem.tsx | unused | Only used by dead CustomBottomTab |
src/Presentations/MobileApps/Miniz/src/components/BottomTabs/AnimatedCircle.tsx | unused | Only used by dead CustomBottomTab |
src/Presentations/MobileApps/Miniz/src/redux/hooks/usePath.tsx | unused hook | Only used by dead bottom-tab components |
src/Presentations/MobileApps/Miniz/src/utils/Path.ts | unused util | Same |
src/Presentations/MobileApps/Miniz/src/components/Search/SearchResultCard.tsx | unused | rg SearchResultCard — defining file only |
src/Presentations/MobileApps/Miniz/src/components/RoundImage.tsx | unused | Only used by dead SearchResultCard |
src/Presentations/MobileApps/Miniz/src/components/RoundImageProps.ts | unused types | Only used by dead RoundImage |
src/Presentations/MobileApps/Miniz/src/components/CommonNotification.tsx | unused | rg CommonNotification — defining file only |
src/Presentations/MobileApps/Miniz/src/components/CommentPopup.tsx | unused | rg CommentPopup — defining file only |
src/Presentations/MobileApps/Miniz/src/components/CommentCard.tsx | unused | rg CommentCard — defining file only |
src/Presentations/MobileApps/Miniz/src/components/AddComment.tsx | unused | rg AddComment — defining file only (unrelated onAddCommentClicked in enquiry) |
src/Presentations/MobileApps/Miniz/src/components/AudioTrim/AudioEditOptions.tsx | unused | Not imported by live AudioTrim.tsx |
src/Presentations/MobileApps/Miniz/src/components/AudioTrim/AppButton.tsx | unused | Only used by dead AudioEditOptions |
src/Presentations/MobileApps/Miniz/src/components/Button1/index.tsx | unused | No @components/Button1 / path imports |
src/Presentations/MobileApps/Miniz/src/utils/Common/CadViewerBundle.ts | unused util | rg getCadViewerBundleUri / loadCadViewerBundleJs — defining file only |
src/Presentations/MobileApps/Miniz/src/model/Home/GetAllPost.ts | unused model | rg getAllPostResponseModel / Home/GetAllPost — defining file only |
src/Presentations/MobileApps/Miniz/src/model/EditProfile/EditProfileModel.ts | unused model | rg EditUserProfileRequestModel — defining file only |
src/Presentations/MobileApps/Miniz/src/model/MyProfile/MyProfileModel.ts | unused model | rg GetAllPostByUserIdRequestModel — defining file only |
src/Presentations/MobileApps/Miniz/src/model/Posts/VideoUploadModel.ts | unused model | Non-exported interface; never imported |
src/Presentations/MobileApps/Miniz/src/model/usermodel.ts | unused model | rg usermodel / UserModel under mobile src — defining file only |
| path | reason for doubt |
|---|---|
src/Presentations/WebApps/miniz-old/ (~31 MB, ~1400 files) | Entire legacy Angular Cuba app; not in Miniz.sln or publish-web.yml. Docs/status notes only. May be kept for reference — confirm before deleting whole tree |
src/Services/Miniz/Miniz.API/Dockerfile.coolify | Alternate Coolify source-build Dockerfile; CI uses Dockerfile.from-publish. May still be the Coolify UI Dockerfile path |
src/Presentations/WebApps/miniz/Dockerfile | Full in-image ng build Dockerfile; CI uses Dockerfile.from-dist. Docs historically reference it |
src/Services/Miniz/Miniz.API/Tools/yt-dlp.exe (~22 MB) | Listed in csproj; Windows/local fallback for YoutubeDLSharpService; Linux images use /usr/local/bin/yt-dlp |
src/Services/Miniz/Miniz.Persistence/Programmability/SeedSqlCommands/DropSPandFuncQuery.sql | Read by DatabaseService.cs (DI-registered, see next row); moved from Safe by Claude review |
src/Services/Miniz/Miniz.Infrastructure/Services/Common/DatabaseService.cs (+ IDatabaseService) | Zero injection sites, but RegisterAssemblyPublicNonGenericClasses().AsPublicImplementedInterfaces() registers it |
src/Services/Miniz/Miniz.Infrastructure/Services/UserManagement/Users/OtpStoreService.cs (IOtpStoreService) | Superseded by OTPStoreService / IOTPStoreService, but still DI-scanned |
Infrastructure services with interfaces but no call sites (e.g. MetalService, PaymentMasterService, ReceiptMasterService, FundTransferService, FundWithdrawService, InstallmentFundEntriesService, AccountService, HangfireJobCredentialValidationService) | Same assembly DI scan — likely dead business code; treat as Unsure |
src/Services/Miniz/Miniz.Infrastructure/Helpers/PushNotificationHelper.cs | Type name only in file; may be superseded by PushNotificationService — confirm |
src/Services/Miniz/Miniz.Application/.../CreateToken/CreateTokenCommand.cs | Implements IRequest<ResponseModel> (MediatR discovery) but handler stub is empty |
src/Services/Miniz/Miniz.Persistence/Programmability/Script/* (incl. Fix_Roles.sql) | SeedFromScriptFile can run Script/ files; ops/manual runbooks — not dead by default |
docs/ai/media-upload-companyid-migration-up.sql, docs/sql/users-username-unique-index.sql, scripts/sql/companyid-index-inspect.sql | Not in deploy pipelines; referenced as operational/docs runbooks |
All Programmability/{Functions,StoredProcedures,Indexes}/Stage/** | Bulk-loaded by DbHelper.AddProgrammabilitySQLFiles at startup — USED even if SP name never appears in C# |
src/Presentations/WebApps/miniz/public/assets/i18n/{ae,cn,de,es,fr,pt}.json | Loader can fetch any locale; app hardcodes en, but language list / future i18n may need them |
src/Presentations/WebApps/miniz/public/assets/** (Cuba theme bulk: fonts/feather, demo images, vendor scss) | Many basenames never hit in src/app, but theme SCSS url(...) / icon fonts may pull them — need CSS dependency graph |
src/Presentations/WebApps/miniz/src/app/shared/components/ui/svg-icon/ vs .../svg-icon/ | Duplicate app-svg-icon selectors; consolidation is refactor, not file-delete |
Miniz.ShareWeb/Pages/Privacy.cshtml (+ .cs) | Default Razor page; routable at /Privacy though unlinked |
Miniz.ShareWeb/wwwroot/lib/jquery*, bootstrap/ (mostly LICENSE stubs) | ASP.NET scaffold; validation partial points at missing jquery.validate — keep unless dropping form pages |
src/Presentations/MobileApps/Miniz/src/components/VideoUpload.tsx, PreviewThumb.tsx, UserPostCard.tsx, UserVideoPreviewCard.tsx | Zero app imports found, but active buffer/media handoffs name PreviewThumb / UserVideoPreviewCard as players to change — may be stale docs or planned rewiring |
src/Presentations/MobileApps/Miniz/src/assets/icons/dirham@2x.png, dirham@3x.png | Metro density variants of used dirham.png — may resolve without TS string refs |
src/Presentations/MobileApps/Miniz/src/assets/icons/AppIcon.png | Used by white-label clients/*/overrides BrandLogo requires |
Empty *.component.scss under miniz / miniz-old | Empty but referenced via styleUrl — not delete targets while .ts lives |
src/Presentations/WebApps/miniz/dist/** | Build output (if present locally); normally gitignored — not source dead code |
| area | Safe items (approx) | Unsure highlights | est. reclaim if Safe deleted |
|---|---|---|---|
Root leftovers (Miniz/, .oldapp-audit/, __pycache__) | 3 groups | — | ~0.9 MB |
| .NET CoreLibraries + Services (orphan models/helpers/DTOs/stubs) | ~30 files | DI-scanned services; Script SQL; yt-dlp.exe; Coolify Dockerfiles | ~25–40 KB code |
SQL (scripts/sql, SeedSqlCommands drop script) | 2 | ops/docs SQL; all Stage programmability | ~4 KB |
Angular WebApps/miniz (components/services/models/assets) | ~20 paths | miniz-old 31 MB; theme assets; i18n | ~3.2 MB (mostly auth-bg.mp4) |
Miniz.ShareWeb | 2 | Privacy page; wwwroot/lib scaffold | <1 KB |
Mobile MobileApps/Miniz | ~50 paths | preview players named in handoffs; @2x/@3x; AppIcon | ~1.4 MB (mostly icMiniz*.png) |
deploy/ / docker/ / CI Dockerfiles | 0 Safe | Dockerfile.coolify, full miniz/Dockerfile | — |
| Total Safe (conservative) | ~100 paths | ~5.5–6 MB | |
| Largest Unsure | miniz-old (~31 MB), yt-dlp.exe (~22 MB) | up to ~53 MB if owner confirms |
Notes
• Controllers, Hangfire jobs, EF Migrations/, MediatR handlers, and DbHelper-deployed SQL were treated as used.
• Empty Angular SCSS companions are used via styleUrl — listed only as context, not Safe.
• No *.bak / *.old / *.orig source leftovers under scoped trees (excluding node_modules).
• Report only — nothing deleted or edited except this file.