The Kilo Code CLI stores task history in ~/.kilocode/cli/ (or %USERPROFILE%\.kilocode\cli\ on Windows). With heavy usage, this directory can grow significantly.
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.
If you also use the Kilo Code VS Code extension, you can enable automatic task history cleanup:
Cmd+, / Ctrl+,)The extension's auto-purge feature runs daily and removes old tasks based on configurable retention periods for different task types (favorited, completed, incomplete).