Skip to content

[Bug]: hermes uninstall does not work on Windows #34185

Description

@dpurge

Bug Description

I wanted to test hermes and installed it on Windows with iex (irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1)

Since it does not work with context window that I can fit onto my GPU with the model I like, and CPU is slow, I tried to delete it with hermes uninstall option 2 (Full uninstall - Remove everything including all data).

It has left a lot of stuff behind:

dir $env:LOCALAPPDATA/hermes

PS C:\> dir $env:LOCALAPPDATA/hermes

    Directory: C:\Users\...\AppData\Local\hermes

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----           5/29/2026 12:55 AM                hermes-agent
d----           5/28/2026 10:27 PM                hooks
d----           5/28/2026 10:27 PM                image_cache
d----           5/28/2026 10:27 PM                logs
d----           5/29/2026 12:19 AM                memories
d----           5/28/2026 10:27 PM                pairing
d----           5/29/2026 12:26 AM                pastes
d----           5/28/2026 10:53 PM                sandboxes
d----           5/29/2026 12:17 AM                sessions
d----           5/29/2026 12:17 AM                skills
-a---           5/29/2026 12:18 AM        2132960 models_dev_cache.json
-a---           5/29/2026 12:18 AM            672 ollama_cloud_models_cache.json
-a---           5/29/2026 12:18 AM            298 provider_models_cache.json
-a---           5/28/2026 10:27 PM            536 SOUL.md
-a---           5/29/2026 12:28 AM         598016 state.db
-a---           5/29/2026 12:17 AM          32768 state.db-shm
-a---           5/29/2026 12:54 AM        2793392 state.db-wal

I would expect uninstall to work.

Steps to Reproduce

  1. Install with iex (irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1) on Windows 11
  2. Run
  3. Uninstall with hermes uninstall option 2 (Full uninstall - Remove everything including all data)
  4. Check for files that were NOT removed: dir $env:LOCALAPPDATA/hermes

Expected Behavior

All files created by hermes should be removed: additional tools installed, configuration, logs, everything

Actual Behavior

In my case 936 MB of useless files left in $env:LOCALAPPDATA/hermes
This includes memory and sessions that the user might believe to be removed.

Affected Component

Other

Messaging Platform (if gateway-related)

No response

Debug Report

CLI removed, cannot run `debug share`

Operating System

Windows 11

Python Version

It did NOT use my Python 3.12.8, I've seen a message that Python 3.11 was fetched with uv

Hermes Version

Too late - CLI removed

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/cliCLI entry point, hermes_cli/, setup wizardtype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions