Unused (dead) files — Miniz repo

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).

1. Safe to delete

pathtypewhy unused (what you searched)
Miniz/Miniz.slnstale 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 bytecodeLocal cache; .gitignore already excludes __pycache__/*.pyc
scripts/sql/companyid-precheck.sqlSQL (~3.5 KB)rg companyid-precheck — zero hits (unlike companyid-index-inspect.sql, which docs cite)
src/CoreLibraries/Lib.Core/Models/Request/DateRangeModel.csclassrg \bDateRangeModel\b — defining file only
src/CoreLibraries/Lib.Core/Models/Resource/ImageVM.csclassrg \bImageVM\b — defining file only
src/CoreLibraries/Lib.Core/Models/Request/RequestModel.csclassrg \bRequestModel\b in *.cs — defining file only
src/CoreLibraries/Lib.Core/Models/Request/ProductModel.csclass (ProductConstant)rg \bProductConstant\b — defining file only
src/CoreLibraries/Lib.Core/Models/Response/ErrorResponse.csclassrg \bErrorResponse\b in *.cs — defining file only (no new ErrorResponse)
src/CoreLibraries/Lib.Core/Models/Response/PaginatedResponseModel.csclassrg \bPaginatedResponseModel\b — defining file only
src/CoreLibraries/Lib.Core/Models/Response/LookupRequestModel.csclassrg \bLookupRequestModel\b — defining file only
src/CoreLibraries/Lib.Core/Extensions/JwtExtensions/JwtExtension.csstatic helperrg JwtExtension / GetFieldFromJwtToken — defining file only
src/CoreLibraries/Lib.Core/Extensions/JsonConverters/DateOnlyJsonConverter.csJsonConverterrg DateOnlyJsonConverter — no API AddJsonOptions registration
src/CoreLibraries/Lib.Core/Extensions/JsonConverters/TimeOnlyJsonConverter.csJsonConverterrg TimeOnlyJsonConverter — same
src/CoreLibraries/Lib.S3Bucket/Model/ResourcePathModel.csclassrg ResourcePathModel — defining file only
src/CoreLibraries/Lib.S3Bucket/Helpers/Resources/S3ResourceHelper.csstatic helperrg S3ResourceHelper — defining file only
src/Services/Miniz/Miniz.Domain/Enums/Referral/ReferralAttributionSource.csenumrg ReferralAttributionSource — defining file only
src/Services/Miniz/Miniz.Domain/Enums/UserManagement/FeedbackRatingFilterType.csenumrg FeedbackRatingFilterType — defining file only
src/Services/Miniz/Miniz.Domain/Enums/Analytics/AnalyticsEventCategoryHelper.csstatic helperrg AnalyticsEventCategoryHelper — defining file only
src/Services/Miniz/Miniz.Domain/ViewModels/Common/InvoiceItemViewModel.csVMrg InvoiceItemViewModel — defining file only
src/Services/Miniz/Miniz.Domain/ViewModels/Common/InvoiceTaxModel.csVMrg InvoiceTaxModel — defining file only
src/Services/Miniz/Miniz.Domain/ViewModels/InvestmentFund/InstallmentFundEntriesReceipt/InstallmentFundEntriesReceiptVM.csVMrg InstallmentFundEntriesReceiptVM — defining file only
src/Services/Miniz/Miniz.Infrastructure/Helpers/ObjectMapper.csstatic helperrg ObjectMapper — defining file only (no interface → not DI-scanned as service)
src/Services/Miniz/Miniz.Infrastructure/Helpers/SetDecimal.csstatic helperrg SetDecimalAmount — defining file only
src/Services/Miniz/Miniz.Infrastructure/Helpers/AppSettings.csPOCOrg \bAppSettings\b / IOptions<AppSettings> — defining file only; not bound in Program.cs
src/Services/Miniz/Miniz.Infrastructure/Services/HttpRequestServices/ServiceModels/SendMessageWithFile.csDTOrg SendMessageWithFile — defining file only
src/Services/Miniz/Miniz.Infrastructure/Services/OTP/ServiceModels/ResendOTP/ResendOTPResponse.csDTOrg ResendOTPResponse in Services — defining file only (mobile uses its own ResendOTPResponseModel)
src/Services/Miniz/Miniz.Infrastructure/Services/PushNotification/ServiceModels/SendFCMResponse.csDTOrg SendFCMResponse — defining file only
src/Services/Miniz/Miniz.Infrastructure/Services/InvestmentFund/InstallmentFundEntry/ServiceModel/GetAllInstallmentFundEntriesRequestModel.csDTOrg GetAllInstallmentFundEntriesRequestModel — defining file only
src/Services/Miniz/Miniz.Application/Features/PaymentIntegration/SmePay/Commands/CreateToken/CreateTokenCommandHandler.csempty stubEmpty class; not IRequestHandler<>; rg CreateTokenCommandHandler — defining file only
src/Services/Miniz/Miniz.Application/Features/PaymentIntegration/SmePay/Commands/CreateOrder/CreateOrderResponse.csunused DTOHandlers return ResponseModel; type name only in this file
src/Services/Miniz/Miniz.Application/Features/PaymentIntegration/SmePay/Commands/CheckStatus/CheckStatusResponse.csunused DTOSame
src/Services/Miniz/Miniz.Application/Features/PaymentIntegration/SmePay/Commands/CreateToken/CreateTokenResponse.csunused DTOSame
src/Services/Miniz/Miniz.Application/Features/Admin/OnboardingRegisteredUser/Commands/RegisterUser/RegisterUserCommandResponse.csunused DTOHandler uses ResponseModel; type only here
src/Presentations/WebApps/miniz/src/app/shared/components/header/widgets/header-bookmark/Angular componentHeaderBookmarkComponent / app-header-bookmark: not in header.component.ts imports or template
src/Presentations/WebApps/miniz/src/app/shared/components/header/widgets/header-language/Angular componentSame for HeaderLanguageComponent / app-header-language
src/Presentations/WebApps/miniz/src/app/shared/components/header/widgets/header-notification/Angular componentSame for HeaderNotificationComponent
src/Presentations/WebApps/miniz/src/app/shared/components/header/widgets/mode/Angular componentSame for ModeComponent / app-mode
src/Presentations/WebApps/miniz/src/app/shared/components/header/widgets/toggle-screen/Angular componentSame for ToggleScreenComponent
src/Presentations/WebApps/miniz/src/app/shared/components/layout/full/Angular componentFullComponent / 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.tsAngular servicerg CartService — defining file only (providedIn: 'root' but never injected)
src/Presentations/WebApps/miniz/src/app/shared/data/cart.tsdataOnly imported by dead cart.service.ts
src/Presentations/WebApps/miniz/src/app/shared/data/order.tsdataOnly imported by cart.ts
src/Presentations/WebApps/miniz/src/app/shared/interface/order.tsinterfaceOnly cart chain
src/Presentations/WebApps/miniz/src/app/shared/models/ag-grid-pagination-config.model.tsmodelrg AgGridPaginationConfig — defining file only
src/Presentations/WebApps/miniz/src/app/shared/models/pagination-base-model.model.tsmodelrg PaginationBaseModel / pagination-base-model — defining file only
src/Presentations/WebApps/miniz/src/app/shared/config/web.configmisplaced 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.mp4asset (~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.svgasset (~11 KB)rg nishka_logo — zero hits in app
src/Presentations/WebApps/miniz/public/assets/svg/logo/nishka_sidebar_logo.svgasset (~29 KB)rg nishka_sidebar — zero hits
src/Presentations/WebApps/Miniz.ShareWeb/wwwroot/js/site.jsstatic JS (~227 B)Not linked from _Layout.cshtml / Open.cshtml (rg site.js)
src/Presentations/WebApps/Miniz.ShareWeb/Pages/Shared/_ValidationScriptsPartial.cshtmlRazor partialNever @await Html.PartialAsync / <partial> (rg ValidationScriptsPartial)
src/Presentations/MobileApps/Miniz/src/assets/icons/icChecked copy.svgFinder 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.svgFinder duplicate (587 B)Same for icUnchecked.svg
src/Presentations/MobileApps/Miniz/src/assets/icons/GradientCard.pngunused iconNot in icons/index.ts; no basename refs outside icons folder
src/Presentations/MobileApps/Miniz/src/assets/icons/TransactionCard.pngunused iconSame
src/Presentations/MobileApps/Miniz/src/assets/icons/TransactionCard.svgunused iconSame
src/Presentations/MobileApps/Miniz/src/assets/icons/IcGiftVoucherView.svgunused iconIndex imports IcGiftVoucher.svg, not View
src/Presentations/MobileApps/Miniz/src/assets/icons/IcMapCardGradient.pngunused icon (~46 KB)Not in index; no refs
src/Presentations/MobileApps/Miniz/src/assets/icons/icRedDelete.svgunused iconSame
src/Presentations/MobileApps/Miniz/src/assets/icons/icRedPayment.svgunused iconSame
src/Presentations/MobileApps/Miniz/src/assets/icons/icRequestBackground.pngunused icon (~27 KB)Same
src/Presentations/MobileApps/Miniz/src/assets/icons/icMinizfirst.pngunused icon (~401 KB)rg icMinizfirst — none
src/Presentations/MobileApps/Miniz/src/assets/icons/icMinizSecond.pngunused icon (~452 KB)Same
src/Presentations/MobileApps/Miniz/src/assets/icons/icMinizThird.pngunused icon (~227 KB)Same
src/Presentations/MobileApps/Miniz/src/assets/icons/icMinizFourth.pngunused icon (~200 KB)Same
src/Presentations/MobileApps/Miniz/src/assets/icons/LeftArrowIcon.tsxunused icon componentrg LeftArrowIcon — defining file only
src/Presentations/MobileApps/Miniz/src/assets/icons/SparkleIcon.tsxunused icon componentrg SparkleIcon — defining file only
src/Presentations/MobileApps/Miniz/src/assets/icons/StarIcon.tsxunused icon componentrg StarIcon — defining file only
src/Presentations/MobileApps/Miniz/src/navigation/HomeTabNavigator.tsxdead navigatorrg HomeTabNavigator — defining file only; not wired in MainNavigator
src/Presentations/MobileApps/Miniz/src/navigation/EditPostNavigator.tsxdead navigatorrg EditPostNavigator — defining file only
src/Presentations/MobileApps/Miniz/src/navigation/Enquiry.tsxdead navigatorNot imported (rg navigation/Enquiry); enquiry screens use other navigators
src/Presentations/MobileApps/Miniz/src/navigation/useRouteTracking.tsxunused hookrg useRouteTracking — defining file only
src/Presentations/MobileApps/Miniz/src/screens/Song/SongDetails.tsxunregistered screenNot in any navigator; SongList is registered but does not navigate here
src/Presentations/MobileApps/Miniz/src/screens/Song/SongVideoPlayer.tsxunregistered screenOnly targeted from dead SongDetails
src/Presentations/MobileApps/Miniz/src/screens/LandingPage/Tabs/index.tsxdemo carouselCircularCarousel demo; not imported by navigators / LandingPage
src/Presentations/MobileApps/Miniz/src/screens/LandingPage/Tabs/list-item.tsxdemo helperOnly used by dead Tabs/index.tsx
src/Presentations/MobileApps/Miniz/src/screens/LandingPage/hooks/index.tsunused barrelHooks imported by direct path (landingPageSharedState etc.); barrel never imported
src/Presentations/MobileApps/Miniz/src/components/CouponCountdown.tsxunused componentrg CouponCountdown — defining file only
src/Presentations/MobileApps/Miniz/src/components/UploadingLoad.tsxunused componentrg UploadingLoad — defining file only
src/Presentations/MobileApps/Miniz/src/components/BottomTabs/CustomBottomTab.tsxunused tab barrg CustomBottomTab — defining file only
src/Presentations/MobileApps/Miniz/src/components/BottomTabs/TabItem.tsxunusedOnly used by dead CustomBottomTab
src/Presentations/MobileApps/Miniz/src/components/BottomTabs/AnimatedCircle.tsxunusedOnly used by dead CustomBottomTab
src/Presentations/MobileApps/Miniz/src/redux/hooks/usePath.tsxunused hookOnly used by dead bottom-tab components
src/Presentations/MobileApps/Miniz/src/utils/Path.tsunused utilSame
src/Presentations/MobileApps/Miniz/src/components/Search/SearchResultCard.tsxunusedrg SearchResultCard — defining file only
src/Presentations/MobileApps/Miniz/src/components/RoundImage.tsxunusedOnly used by dead SearchResultCard
src/Presentations/MobileApps/Miniz/src/components/RoundImageProps.tsunused typesOnly used by dead RoundImage
src/Presentations/MobileApps/Miniz/src/components/CommonNotification.tsxunusedrg CommonNotification — defining file only
src/Presentations/MobileApps/Miniz/src/components/CommentPopup.tsxunusedrg CommentPopup — defining file only
src/Presentations/MobileApps/Miniz/src/components/CommentCard.tsxunusedrg CommentCard — defining file only
src/Presentations/MobileApps/Miniz/src/components/AddComment.tsxunusedrg AddComment — defining file only (unrelated onAddCommentClicked in enquiry)
src/Presentations/MobileApps/Miniz/src/components/AudioTrim/AudioEditOptions.tsxunusedNot imported by live AudioTrim.tsx
src/Presentations/MobileApps/Miniz/src/components/AudioTrim/AppButton.tsxunusedOnly used by dead AudioEditOptions
src/Presentations/MobileApps/Miniz/src/components/Button1/index.tsxunusedNo @components/Button1 / path imports
src/Presentations/MobileApps/Miniz/src/utils/Common/CadViewerBundle.tsunused utilrg getCadViewerBundleUri / loadCadViewerBundleJs — defining file only
src/Presentations/MobileApps/Miniz/src/model/Home/GetAllPost.tsunused modelrg getAllPostResponseModel / Home/GetAllPost — defining file only
src/Presentations/MobileApps/Miniz/src/model/EditProfile/EditProfileModel.tsunused modelrg EditUserProfileRequestModel — defining file only
src/Presentations/MobileApps/Miniz/src/model/MyProfile/MyProfileModel.tsunused modelrg GetAllPostByUserIdRequestModel — defining file only
src/Presentations/MobileApps/Miniz/src/model/Posts/VideoUploadModel.tsunused modelNon-exported interface; never imported
src/Presentations/MobileApps/Miniz/src/model/usermodel.tsunused modelrg usermodel / UserModel under mobile src — defining file only

2. Unsure

pathreason 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.coolifyAlternate Coolify source-build Dockerfile; CI uses Dockerfile.from-publish. May still be the Coolify UI Dockerfile path
src/Presentations/WebApps/miniz/DockerfileFull 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.sqlRead 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.csType name only in file; may be superseded by PushNotificationService — confirm
src/Services/Miniz/Miniz.Application/.../CreateToken/CreateTokenCommand.csImplements 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.sqlNot 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}.jsonLoader 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.tsxZero 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.pngMetro density variants of used dirham.png — may resolve without TS string refs
src/Presentations/MobileApps/Miniz/src/assets/icons/AppIcon.pngUsed by white-label clients/*/overrides BrandLogo requires
Empty *.component.scss under miniz / miniz-oldEmpty 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

3. Summary

areaSafe items (approx)Unsure highlightsest. reclaim if Safe deleted
Root leftovers (Miniz/, .oldapp-audit/, __pycache__)3 groups—~0.9 MB
.NET CoreLibraries + Services (orphan models/helpers/DTOs/stubs)~30 filesDI-scanned services; Script SQL; yt-dlp.exe; Coolify Dockerfiles~25–40 KB code
SQL (scripts/sql, SeedSqlCommands drop script)2ops/docs SQL; all Stage programmability~4 KB
Angular WebApps/miniz (components/services/models/assets)~20 pathsminiz-old 31 MB; theme assets; i18n~3.2 MB (mostly auth-bg.mp4)
Miniz.ShareWeb2Privacy page; wwwroot/lib scaffold&lt;1 KB
Mobile MobileApps/Miniz~50 pathspreview players named in handoffs; @2x/@3x; AppIcon~1.4 MB (mostly icMiniz*.png)
deploy/ / docker/ / CI Dockerfiles0 SafeDockerfile.coolify, full miniz/Dockerfile—
Total Safe (conservative)~100 paths~5.5–6 MB
Largest Unsureminiz-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.