Repository navigation
Releases
Releases · ThanhNguyxnOrg/PurgeKit
PurgeKit v1.5.0
PurgeKit v1.4.1
PurgeKit v1.4.0
What's Changed
- build(deps): bump the frontend-dependencies group with 8 updates by @dependabot[bot] in #51
- build(deps): bump the rust-dependencies group in /src-tauri with 3 updates by @dependabot[bot] in #50
Full Changelog: v1.3.1...v1.4.0
PurgeKit v1.3.1
PurgeKit v1.3.0
💽 Disk Space & WizTree Parity
- Nested treemap with labels, allocated/logical weighting, free-space tile, small-file grouping, breadcrumbs, double-click zoom and Up navigation.
- Largest-files, file-types and duplicate views; name/path filtering, extension filters, include/exclude paths and configurable result limits.
- CSV/TSV import plus CSV/TSV export with current-view/all-matches scope, direct folder totals, created/last-accessed dates, parent %, MFT record numbers and drive-size information.
- Full file-types CSV export, treemap PNG and self-contained HTML reports.
- Versioned
.pkmftdumps and read-only WizTree.MFTimport, including raw MFT records, theVOLDATA2footer, volume metadata and folder-subtree selection.
⚡ MFT Performance & Reliability
- Parallel MFT record parsing for file dumps (64 MB chunks) and live volume reads (4 MB chunks).
- 64 KB aligned volume reader fixes
ERROR_INVALID_PARAMETERon raw NTFS handles. - Breadth-first tree budgeting keeps all top-level folders visible on large scans.
- A 3.15 GB WizTree dump loads in about 52 seconds in the debug UI (down from 184 s); a live
C:\Windowsfolder scan completes in 51 seconds. - Live elevated C: dump and
C:\Windowsfolder scans were validated end-to-end.
🎨 Application Inventory & UI
- Unified desktop, Store, CLI, toolchain and portable inventory with source/category filters and bulk actions.
- 137/138 app rows now resolve logos; only the
vs_CoreEditorFontsfont component has no application icon. - 12/15 Startup entries resolve logos; the remaining three are stale targets and are flagged with a warning.
- Removed app-name icon special cases; GitHub CLI and Go now resolve through the generic DisplayIcon/shortcut/install-folder/PATH pipeline.
- Environment variables are expanded in Startup commands before target and icon resolution.
- Install dates for 137/138 rows via registry dates and install-folder/uninstaller creation fallback.
- Semantic light/dark contrast tokens, readable action colors, icon frames for white/transparent logos and responsive 900x600 layouts.
🔐 Safety & Data Integrity
- Project Sweeper deletion is bound to the last scan result; unscanned paths are rejected.
- Elevated uninstallers, startup entries, quarantine restores, toolchain/CLI removals and MFT volume reads retain their path, signature and allowlist gates.
- Imported disk dumps remain read-only until a live rescan; quarantine is disabled for imported views.
- Raw
.MFTand.pkmftdumps are git-ignored to prevent accidental repository bloat.
📚 Documentation & Tests
- Added the Disk Space/MFT guide and synchronized README, FEATURES, ARCHITECTURE, CHANGELOG and release workflow documentation.
cargo test --lib: 120 passed, 4 ignored;cargo check --bins,svelte-checkand production build remain clean.- Light/dark/narrow UI passes and Markdown link checks completed with no broken relative links.
PurgeKit v1.2.1
🐛 Bug Fixes & Reliability Enhancements
- 🚀 CI/CD Release Pipeline Recovery:
- Fixed syntax error in
.github/workflows/release-windows.ymlby explicitly settingshell: bashon theEnsure Git Tag Existsstep, preventing PowerShell parser failures onwindows-latestrunners.
- Fixed syntax error in
- 🔎 Quoted Paths Parsing in PATH Cleaner:
- Sanitized double-quoted directory paths (e.g.,
"C:\Program Files\Git\cmd") inpath_cleaner.rsprior toPath::is_dir()validation, fixing false-positive "Directory does not exist" detections and preventing accidental deletion of valid system paths.
- Sanitized double-quoted directory paths (e.g.,
- 🛡️ Canonical Machine-Wide System PATH Priority:
- Prioritized reading System PATH (
HKLM) before User PATH (HKCU), ensuring machine-wide paths are treated as canonical and only redundant user-scoped entries are flagged for deduplication cleanup.
- Prioritized reading System PATH (
- 🔒 Admin Elevation Pre-flight Gate:
- Enforced administrative privilege pre-flight validation in
PathCleanerTab.sveltebefore persisting changes, preventing partial state mutations where User PATH is saved but System PATH fails with Access Denied.
- Enforced administrative privilege pre-flight validation in
- 📁 Boundary Hardening in Project Sweeper:
- Normalized path delimiters and blocked direct scanning and sweeping inside
Program Files,Program Files (x86),ProgramData, andWindowssystem roots in bothProjectSweeperTab.svelteandproject_sweeper.rsto protect installed application binaries (bin,obj,node_modules).
- Normalized path delimiters and blocked direct scanning and sweeping inside
- ⚙️ Uninstaller Exit Code Verification:
- Added strict child exit status checks for both UWP
Remove-AppxPackageand standard Win32 uninstallers incommands.rs, ensuring uninstallation errors are properly bubbled up to the user.
- Added strict child exit status checks for both UWP
PurgeKit v1.2.0
🔒 Enterprise Security Hardening & Fail-Safe Defaults
- 🛡️ Centralized Win32 Safety Primitives (
winutil.rs):- Centralized all Win32 safety primitives (canonicalization, environment variable expansion, protected paths blacklist, critical service protection, and executable path extraction).
- Enforced strict case-insensitive path comparisons and extended prefix canonicalization (
\\?\) preventing TOCTOU and directory traversal bypasses.
- 🚧 System PATH Zeroing Defense:
- Implemented fail-safe guards in both backend (
path_cleaner.rs) and frontend (PathCleanerTab.svelte) that strictly forbid wiping the Windows System PATH completely.
- Implemented fail-safe guards in both backend (
- 🛡️ Uninstaller Privilege Escalation Bypass Prevention:
- Pre-expanded environment variables (
%VAR%) in uninstaller command strings prior to inspecting user-writable locations and checking Authenticode file signatures (WinVerifyTrust).
- Pre-expanded environment variables (
- 💉 Shell Injection Defense in DevTools Rules:
- Added strict character whitelisting and command validation to
devtools_rules.jsonexecution (scan_dev_toolsandget_single_dynamic_cache_path) to eliminate arbitrary command injection vectors.
- Added strict character whitelisting and command validation to
- 📁 Insecure Path Fallback Remediation:
- Replaced fallback to current working directory (
.) or shared temp folder with secure user profile roaming directories (%USERPROFILE%\AppData\Roaming/LocalorC:\Users\Public), isolating SQLite databases and settings.
- Replaced fallback to current working directory (
⚡ Performance & Reliability Optimizations
- 🚀 Fast Locker Direct Branching:
- Optimized file/folder deletion in
locker.rsby checkingpath_buf.is_dir()directly before attempting deletion, eliminating failingremove_filesystem call roundtrips on directories.
- Optimized file/folder deletion in
- 🧩 Robust Quotes & Arguments Parsing in Autoruns:
- Replaced ad-hoc whitespace splitting in
autoruns.rs(which erroneously truncated paths like"C:\Program Files\App\app.exe" --argtoC:\Program) with robust centralizedextract_executable_path.
- Replaced ad-hoc whitespace splitting in
- 💾 Database & Snapshot Synchronization:
- Aligned database schema columns (
reg_count,file_count) across SQLite and JSON snapshot records, preventing schema mismatches in the snapshot engine.
- Aligned database schema columns (
- 📦 Quarantine Sandbox Containment:
- Added strict canonical path boundary checks in quarantine restoration and permanent deletion to ensure items strictly reside within the designated quarantine directory.
- Skipped symlinks and directory junctions during quarantine directory copying to avoid recursion leaks.
PurgeKit v1.1.0
🔒 Security Hardening & LPE Prevention
- 🛡️ Secure PATH Utility: Implemented a centralized secure system PATH lookup querying admin-writable
HKLMhives, overriding the PATH variable in all spawned process executions (PowerShell, CMD, WSL, DiskPart, XCopy, Registry Export) to block path hijacking attacks. - 🚧 Confinement & Safety Gates:
- Integrated
winutil::is_safe_to_deletechecks into dev tool cache purging and CLI package uninstallation workflows. - Added strict path confinement (
is_in_startup_dirandis_in_tasks_dir) to restrict file operations in Startup Manager to valid directories, returningAccess Deniedon unauthorized paths. - Safe Unicode and UWP package name parsing to prevent crashes/panics on multi-byte characters in uninstall strings.
- Integrated
- 📂 Dotfolder Repository Protection: Remnants scans now strictly ignore dotfolders/dotfiles (like
.git,.vscode,.idea,.gradle) inside sensitive user directories (Desktop,Documents,Downloads), protecting local code repos and IDE configurations from accidental cleanup.
⚙️ Dynamic Developer Tools Rules
- 📝 Data-Driven Configuration: Dev tools definitions are now loaded dynamically from
%LOCALAPPDATA%\PurgeKit\devtools_rules.json(auto-created with 16 defaults if missing). - ⚡ Template Resolution: Supports environment templates (
{APPDATA},{LOCALAPPDATA},{USERPROFILE}) and dynamic cache command resolution. - 🛡️ Safe Fallback Purging: Custom user rules bypass command execution entirely to prevent LPE. Instead, they trigger secure direct directory purging using safe deletion gates.
🚀 Advanced Startup Manager & Scheduled Tasks
- 🔍 Registry Hives Expansion: Expanded Startup Manager scanning to cover
Wow6432Nodeuser run keys and legacyRunServices/RunServicesOncehives under bothHKCUandHKLM. - ⏰ Logon & Boot Scheduled Tasks:
- Recursively scans
C:\Windows\System32\Tasksfor Scheduled Tasks triggered at boot/logon. - Parses XML task actions safely for
<Command>,<Arguments>, and COM<ClassId>actions. - Supports enabling/disabling tasks by appending/removing
.disabledto task files under strict Admin validation.
- Recursively scans
🐛 GitHub Integration & Reporting
- 📝 Dynamic Bug Reporting: Split reports into dedicated Bug Reports (automatically gathers OS version, Admin status, and app version for GitHub pre-population) and Feature Suggestions.
PurgeKit v1.0.0
🎉 Welcome to PurgeKit v1.0.0! 🚀
We are thrilled to announce the first stable release of PurgeKit – the ultimate developer-focused system uninstaller and deep cleaner built for Windows 10 & 11! 🛡️💻
PurgeKit is specifically designed to go beyond typical Windows uninstallers, ensuring that developer caches, build directories, compilers, virtual disks, and broken environment variables are surgically cleaned from your machine.
🔥 Major Feature Showcases
🧹 1. Apps Manager & Bulk Silent Uninstaller
- 📦 Complete App Registry Crawlers: Detects standard Win32 applications and UWP Windows Store packages with elevated registry scans.
- ⚡ Silent Uninstallation: Automates uninstallation using silent/quiet flags so you don't have to click "Next" repeatedly.
- 🔍 Remnant Deep Scan: Scans standard directories (
AppData,ProgramFiles,ProgramData) and registry keys (HKLM,HKCU) to purge leftovers automatically.
🗂️ 2. Universal Project Sweeper
- 📂 Directory Crawling: Instantly scans your workspace folders for bulky dependencies (
node_modules,target,venv,.vs, etc.). - 📈 Size Estimation: Visualizes exactly how much disk space is wasted on build artifacts before cleaning.
- 🎥 Live Events Stream: Outputs real-time Tauri/Rust walkdir log events directly to the UI.
🐋 3. WSL2 Virtual Disk Shrinker
- 💾 VHDX Compaction: Safely shrinks bloated Windows Subsystem for Linux (WSL2)
ext4.vhdxvirtual disks using native Windowsdiskpart. - ⚙️ Sparse Mode Toggle: Easily enables/disables the NTFS sparse property on your WSL disks to restrict auto-bloat.
- 📜 Compact Log Viewer: Live stdout stream of the compaction process in a retro-terminal UI.
🛠️ 4. Toolchain Version Sweeper
- 🦀 Rustup Manager: Scans and uninstalls unused/obsolete toolchains, target architectures, and cargo build directories.
- 🟢 Node.js Version Sweeper: Detects and purges unused NVM or FNM Node.js runtimes.
🖥️ 5. PATH Environment Cleaner
- 🔗 Broken Link Auto-Detect: Identifies invalid, non-existent directory paths clogging your User and System
PATH. - ✨ Deduplication: Instantly highlights and removes duplicate entries to clean up Windows environment variables safely.
📸 Technical Underpinnings
- 💾 Snapshot Diff Engine: Takes a system-wide baseline snapshot of your Registry and filesystem, runs the app installer, and compares the differences (powered by SQLite and HashSets) to track every file added.
- 📡 Active Installation Tracker: Hooks into the NTFS USN Journal using Win32 FFI to capture real-time file creation events as they occur.
- 🛡️ Quarantine Safe-Guard: Every registry key deleted is exported to a
.regfile, and files are copied to a secure Local AppData quarantine folder before erasure. Easily restore anything with one click. - 🔐 UAC Manifest Elevation: Includes Windows elevation manifests to ensure registry/diskpart actions run under secure Admin privileges.
🔧 Fixes & Optimizations
- 📱 Interface Responsiveness: Fully responsive, liquid-grid dashboard supporting compact multi-tasking modes.
- ⚡ Rust Performance: Low-overhead Win32 API interactions for ultra-fast NTFS USN tracking.
- 🛠️ Bugfix: Resolved invalid nesting in Svelte Dev Tools dashboard wrapper.
📥 Installation Guide
- Download
PurgeKit_x64_en-US.msiorPurgeKit_x64-setup.exefrom the assets below. - Run the installer and grant Administrator Privileges when prompted (required for DiskPart & Registry operations).
- Open PurgeKit from the Start Menu and start cleaning! 🚀
Made with ❤️ by the ThanhNguyxnOrg team. Feel free to open issues or contribute!