DISK_SPACE_MANAGEMENT.md 1.0 KB

Managing Disk Space

The Kilo Code CLI stores task history in ~/.kilocode/cli/ (or %USERPROFILE%\.kilocode\cli\ on Windows). With heavy usage, this directory can grow significantly.

Manual Cleanup

Delete the CLI data directory to free disk space:

macOS/Linux:

rm -rf ~/.kilocode/cli

Windows (PowerShell):

Remove-Item -Recurse -Force "$env:USERPROFILE\.kilocode\cli"

Windows (Command Prompt):

rmdir /s /q "%USERPROFILE%\.kilocode\cli"

Note: This deletes all task history. The directory will be recreated on next CLI use.

Using the VS Code Extension

If you also use the Kilo Code VS Code extension, you can enable automatic task history cleanup:

  1. Open VS Code Settings (Cmd+, / Ctrl+,)
  2. Search for "Kilo Code auto purge"
  3. Enable Auto Purge and configure retention periods

The extension's auto-purge feature runs daily and removes old tasks based on configurable retention periods for different task types (favorited, completed, incomplete).