Skip to content

Releases

PurgeKit v1.5.0

Choose a tag to compare

@thanhnguyxnagent thanhnguyxnagent released this 23 Nov 21:51
d4ffab1

Features

  • verify duplicate contents before quarantine (#61) (3ca38d8)

Other changes

  • ci: run Rust safety tests on Windows against temporary data (#63) (ec17974)
  • docs: use real purgekit-cli binary name and lead CLI section with --dry-run (#64) (4c30505)

PurgeKit v1.4.1

Choose a tag to compare

@thanhnguyxnagent thanhnguyxnagent released this 22 Nov 09:44

Bug Fixes and Performance

  • keep the quarantine copy when directory removal fails (#60) (11e2e04)
  • refuse per-user uninstall commands when elevated and allowlist msiexec (#62) (3e9fec3)

PurgeKit v1.4.0

Choose a tag to compare

@thanhnguyxnagent thanhnguyxnagent released this 14 Nov 15:21

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

Choose a tag to compare

@thanhnguyxnagent thanhnguyxnagent released this 10 Nov 11:48

Bug Fixes and Performance

  • adapt MFT parsing to current crate API (e4f1721)
  • copy MFT metadata before iterator borrow ends (48df668)

PurgeKit v1.3.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 14:11

💽 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 .pkmft dumps and read-only WizTree .MFT import, including raw MFT records, the VOLDATA2 footer, 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_PARAMETER on 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:\Windows folder scan completes in 51 seconds.
  • Live elevated C: dump and C:\Windows folder 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_CoreEditorFonts font 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 .MFT and .pkmft dumps 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-check and production build remain clean.
  • Light/dark/narrow UI passes and Markdown link checks completed with no broken relative links.

PurgeKit v1.2.1

Choose a tag to compare

@github-actions github-actions released this 07 Oct 12:55

🐛 Bug Fixes & Reliability Enhancements

  • 🚀 CI/CD Release Pipeline Recovery:
    • Fixed syntax error in .github/workflows/release-windows.yml by explicitly setting shell: bash on the Ensure Git Tag Exists step, preventing PowerShell parser failures on windows-latest runners.
  • 🔎 Quoted Paths Parsing in PATH Cleaner:
    • Sanitized double-quoted directory paths (e.g., "C:\Program Files\Git\cmd") in path_cleaner.rs prior to Path::is_dir() validation, fixing false-positive "Directory does not exist" detections and preventing accidental deletion of valid system paths.
  • 🛡️ 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.
  • 🔒 Admin Elevation Pre-flight Gate:
    • Enforced administrative privilege pre-flight validation in PathCleanerTab.svelte before persisting changes, preventing partial state mutations where User PATH is saved but System PATH fails with Access Denied.
  • 📁 Boundary Hardening in Project Sweeper:
    • Normalized path delimiters and blocked direct scanning and sweeping inside Program Files, Program Files (x86), ProgramData, and Windows system roots in both ProjectSweeperTab.svelte and project_sweeper.rs to protect installed application binaries (bin, obj, node_modules).
  • ⚙️ Uninstaller Exit Code Verification:
    • Added strict child exit status checks for both UWP Remove-AppxPackage and standard Win32 uninstallers in commands.rs, ensuring uninstallation errors are properly bubbled up to the user.

PurgeKit v1.2.0

Choose a tag to compare

@github-actions github-actions released this 07 Oct 12:52

🔒 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.
  • 🛡️ 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).
  • 💉 Shell Injection Defense in DevTools Rules:
    • Added strict character whitelisting and command validation to devtools_rules.json execution (scan_dev_tools and get_single_dynamic_cache_path) to eliminate arbitrary command injection vectors.
  • 📁 Insecure Path Fallback Remediation:
    • Replaced fallback to current working directory (.) or shared temp folder with secure user profile roaming directories (%USERPROFILE%\AppData\Roaming / Local or C:\Users\Public), isolating SQLite databases and settings.

⚡ Performance & Reliability Optimizations

  • 🚀 Fast Locker Direct Branching:
    • Optimized file/folder deletion in locker.rs by checking path_buf.is_dir() directly before attempting deletion, eliminating failing remove_file system call roundtrips on directories.
  • 🧩 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" --arg to C:\Program) with robust centralized extract_executable_path.
  • 💾 Database & Snapshot Synchronization:
    • Aligned database schema columns (reg_count, file_count) across SQLite and JSON snapshot records, preventing schema mismatches in the snapshot engine.
  • 📦 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

Choose a tag to compare

@github-actions github-actions released this 14 Jun 08:48

🔒 Security Hardening & LPE Prevention

  • 🛡️ Secure PATH Utility: Implemented a centralized secure system PATH lookup querying admin-writable HKLM hives, 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_delete checks into dev tool cache purging and CLI package uninstallation workflows.
    • Added strict path confinement (is_in_startup_dir and is_in_tasks_dir) to restrict file operations in Startup Manager to valid directories, returning Access Denied on unauthorized paths.
    • Safe Unicode and UWP package name parsing to prevent crashes/panics on multi-byte characters in uninstall strings.
  • 📂 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 Wow6432Node user run keys and legacy RunServices/RunServicesOnce hives under both HKCU and HKLM.
  • ⏰ Logon & Boot Scheduled Tasks:
    • Recursively scans C:\Windows\System32\Tasks for 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 .disabled to task files under strict Admin validation.

🐛 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

Choose a tag to compare

@github-actions github-actions released this 11 Jun 15:58

🎉 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.vhdx virtual disks using native Windows diskpart.
  • ⚙️ 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 .reg file, 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

  1. Download PurgeKit_x64_en-US.msi or PurgeKit_x64-setup.exe from the assets below.
  2. Run the installer and grant Administrator Privileges when prompted (required for DiskPart & Registry operations).
  3. Open PurgeKit from the Start Menu and start cleaning! 🚀

Made with ❤️ by the ThanhNguyxnOrg team. Feel free to open issues or contribute!