このページの先頭です
このページの本文へ移動

Disk Cleanup Command Line 【2025】

cleanmgr This launches the standard Disk Cleanup GUI. To clean up the drive without any user interaction (auto-select default file types):

cleanmgr /sagerun:1 You must first run cleanmgr /sageset:1 to configure which file types to delete. That setting is then reused by /sagerun:1 . Target a Specific Drive To analyze or clean a specific drive (e.g., D:): disk cleanup command line

del /q /f /s "%TEMP%\*" del /q /f /s "C:\Windows\Temp\*" vssadmin delete shadows /all /quiet Save as cleanup.bat and run as Admin: cleanmgr This launches the standard Disk Cleanup GUI

cleanmgr /verylowdisk To delete temporary files, recycle bin, and other non-essential items silently: disk cleanup command line

cleanmgr /d D: If the drive is critically low on space, you can force a more aggressive cleanup:


サブナビゲーションここから

外国人市民向けの資料 For Foreign Residents

お気に入り

編集

よくある質問FAQ

情報が見つからないときは

English(英語)

中文(中国語)

한국 (韓国語)

Tiếng Việt (ベトナム語)

Español (スペイン語)

Português (ポルトガル語)

サブナビゲーションここまで