{"id":51524934,"url":"https://github.com/dovahkiinyuzuko/wincacheremover","last_synced_at":"2026-07-08T20:01:57.343Z","repository":{"id":360278321,"uuid":"1249446680","full_name":"DovahkiinYuzuko/WinCacheRemover","owner":"DovahkiinYuzuko","description":"[ENG] Safe and efficient Windows cache \u0026 temporary file cleaner for all users (Bilingual Support) / [JPN] 全ユーザー対応のWindowsキャッシュ・一時ファイル削除ツール（日英バイリンガル対応）。","archived":false,"fork":false,"pushed_at":"2026-05-25T18:25:58.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-25T20:07:51.765Z","etag":null,"topics":["automation","bilingual","cache-cleaner","cleanup","powershell","windows"],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DovahkiinYuzuko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-25T17:55:59.000Z","updated_at":"2026-05-25T18:25:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/DovahkiinYuzuko/WinCacheRemover","commit_stats":null,"previous_names":["dovahkiinyuzuko/wincacheremover"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/DovahkiinYuzuko/WinCacheRemover","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DovahkiinYuzuko%2FWinCacheRemover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DovahkiinYuzuko%2FWinCacheRemover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DovahkiinYuzuko%2FWinCacheRemover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DovahkiinYuzuko%2FWinCacheRemover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DovahkiinYuzuko","download_url":"https://codeload.github.com/DovahkiinYuzuko/WinCacheRemover/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DovahkiinYuzuko%2FWinCacheRemover/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35276781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","bilingual","cache-cleaner","cleanup","powershell","windows"],"created_at":"2026-07-08T20:01:56.535Z","updated_at":"2026-07-08T20:01:57.337Z","avatar_url":"https://github.com/DovahkiinYuzuko.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WinCacheRemover\n\n![PowerShell](https://img.shields.io/badge/PowerShell-5391FE?style=for-the-badge\u0026logo=powershell\u0026logoColor=white)\n![License](https://img.shields.io/badge/license-MIT-blue?style=for-the-badge)\n\n**Windows Cache \u0026 Temp File Cleaner / Windows キャッシュ・一時ファイル削除ツール**\n\nWindowsシステムおよび全ユーザーのキャッシュ・一時ファイルを安全かつ効率的に削除する、PowerShellベースのコマンドラインツールです。\nA PowerShell-based command line tool to safely and efficiently delete cache and temporary files for the Windows system and all users.\n\n---\n\n[日本語](#日本語) | [English](#english)\n\n---\n\n## 日本語\n\n### 概要\nWinCacheRemoverは、Windows OSや各種アプリケーションが生成する不要なキャッシュファイルを一括でクリーンアップします。特に、マルチユーザー環境において全ユーザーの `Temp` フォルダ等をスキャンし、一定期間（デフォルトは3日）以上経過した古いファイルのみを安全に削除します。\n\n### 特徴\n- **マルチユーザー対応**: `C:\\Users` 以下の全ユーザープロファイルを自動的に検出し、各ユーザーのキャッシュをクリーンアップします。\n- **安全性重視**: \n    - NTFSジャンクションやシンボリックリンクを自動的に検知し、リンク先（システムディレクトリ等）への意図しない波及を防止します。\n    - 使用中のファイルは自動的にスキップされ、スクリプトが停止することはありません。\n- **日英バイリンガル**: コンソール出力および設定ファイルは日本語と英語を併記しています。\n- **自動実行対応**: 実行間隔（デフォルトは7日）を制限する機能を備えており、タスクスケジューラでの定期実行に適しています。\n- **詳細なログ**: 実行結果や削除されたファイルの合計サイズ、エラー内容がログファイルに詳細に記録されます。\n\n### 使用方法\n1. 管理者権限でPowerShellを起動します。\n2. スクリプトを実行します：\n   ```powershell\n   .\\WinCacheRemover.ps1\n   ```\n3. 初回実行時、または設定を変更したい場合は `config.txt` を編集してください。\n\n### 設定項目 (config.txt) 詳細\n各項目は `Key=Value` の形式で指定します。\n\n*   `ExecutionIntervalDays`: スクリプトを実行する最小間隔（日）。（デフォルト: 7）\n*   `MinFileAgeDays`: 削除対象とするファイルの最小経過日数。（デフォルト: 3）\n*   `LogDirectory`: ログファイルを保存するディレクトリ。（デフォルト: スクリプトと同じ場所）\n*   `LogRetentionDays`: ログファイルの保持期間（日）。（デフォルト: 30）\n*   `Delete_UserTemp`: ユーザーのTempフォルダを削除。（デフォルト: true）\n*   `Delete_SystemTemp`: システムのTempフォルダ (`C:\\Windows\\Temp`) を削除。（デフォルト: true）\n*   `Delete_InetCache`: IE/Edgeのインターネットキャッシュを削除。（デフォルト: true）\n*   `Delete_WebCache`: Webキャッシュを削除。（デフォルト: true）\n*   `Delete_CrashDumps`: アプリのクラッシュダンプを削除。（デフォルト: true）\n*   `Delete_UWP_LocalCache`: Microsoft Storeアプリのローカルキャッシュを削除。（デフォルト: true）\n*   `Delete_UWP_TempState`: Microsoft Storeアプリの一時状態を削除。（デフォルト: true）\n*   `Delete_WindowsUpdateCache`: Windows Updateのダウンロードキャッシュを削除。※アップデート中に削除すると不具合の原因になるためデフォルトは `false` です。\n*   `Delete_Prefetch`: Prefetch（アプリ起動高速化データ）を削除。※削除すると一時的にアプリの起動が遅くなるためデフォルトは `false` です。\n\n#### おすすめの設定例 (config.txt)\n**1. 安全・標準重視（おすすめ）**\nシステムの安定性とアプリの起動速度を優先しつつ、安全にキャッシュを掃除します。\n```text\nExecutionIntervalDays=7\nMinFileAgeDays=3\nDelete_WindowsUpdateCache=false\nDelete_Prefetch=false\n```\n\n**2. ストレージ容量最優先（アグレッシブ）**\nとにかく空き容量を確保したい場合の設定です。\n```text\nExecutionIntervalDays=3\nMinFileAgeDays=1\nDelete_WindowsUpdateCache=true\nDelete_Prefetch=true\n```\n\n---\n\n## English\n\n### Overview\nWinCacheRemover is a utility designed to clean up unnecessary cache and temporary files generated by the Windows OS and various applications. It scans temporary folders across all user profiles in multi-user environments and safely deletes files older than a specified threshold (default: 3 days).\n\n### Key Features\n- **Multi-User Support**: Automatically detects all user profiles under `C:\\Users` and cleans their respective caches.\n- **Safety First**:\n    - Protects against accidental deletion of system files by explicitly skipping NTFS Junctions and Symbolic Links.\n    - Automatically skips files currently in use, ensuring continuous operation without manual intervention.\n- **Bilingual Support**: All console messages and the configuration file are provided in both Japanese and English.\n- **Automation Ready**: Includes a built-in execution interval check (default: 7 days), making it ideal for scheduled tasks.\n- **Detailed Logging**: Logs execution summaries, including the total space freed and any errors encountered.\n\n### How to Use\n1. Open PowerShell as an Administrator.\n2. Run the script:\n   ```powershell\n   .\\WinCacheRemover.ps1\n   ```\n3. Edit `config.txt` to customize settings or change the cleanup behavior.\n\n### Configuration Details (config.txt)\nSpecify each item in the format `Key=Value`.\n\n*   `ExecutionIntervalDays`: Minimum days required between executions. (Default: 7)\n*   `MinFileAgeDays`: Minimum age (in days) of files to be considered for deletion. (Default: 3)\n*   `LogDirectory`: The path where log files will be saved. (Default: Script directory)\n*   `LogRetentionDays`: Number of days to keep old log files. (Default: 30)\n*   `Delete_UserTemp`: Delete user Temp folders. (Default: true)\n*   `Delete_SystemTemp`: Delete the system Temp folder (`C:\\Windows\\Temp`). (Default: true)\n*   `Delete_InetCache`: Delete IE/Edge internet cache. (Default: true)\n*   `Delete_WebCache`: Delete Web cache. (Default: true)\n*   `Delete_CrashDumps`: Delete application crash dumps. (Default: true)\n*   `Delete_UWP_LocalCache`: Delete Microsoft Store apps local cache. (Default: true)\n*   `Delete_UWP_TempState`: Delete Microsoft Store apps temporary state. (Default: true)\n*   `Delete_WindowsUpdateCache`: Delete Windows Update download cache. *Default is `false` to prevent interference with active updates.*\n*   `Delete_Prefetch`: Delete Prefetch data (used to speed up app launches). *Default is `false` to preserve app launch performance.*\n\n#### Recommended Configuration Examples (config.txt)\n**1. Safe \u0026 Standard (Recommended)**\nPrioritizes system stability and app launch speed while safely cleaning caches.\n```text\nExecutionIntervalDays=7\nMinFileAgeDays=3\nDelete_WindowsUpdateCache=false\nDelete_Prefetch=false\n```\n\n**2. Storage Capacity First (Aggressive)**\nUse this if you need to free up as much disk space as possible.\n```text\nExecutionIntervalDays=3\nMinFileAgeDays=1\nDelete_WindowsUpdateCache=true\nDelete_Prefetch=true\n```\n\n---\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdovahkiinyuzuko%2Fwincacheremover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdovahkiinyuzuko%2Fwincacheremover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdovahkiinyuzuko%2Fwincacheremover/lists"}