Skip to content

Windows: rtk init --uninstall does not work #384

Closed

Description

@FlorianBruniaux

Summary

The rtk init -g --uninstall command does not work on Windows. The uninstall process likely assumes a Unix-style environment (bash, Unix paths) and fails silently or errors out.

Environment

  • OS: Windows (reported with Cygwin)
  • RTK version: latest

Expected behavior

rtk init -g --uninstall

Should cleanly remove:

  • %USERPROFILE%\.claude\hooks\rtk-rewrite.sh (or equivalent)
  • %USERPROFILE%\.claude\RTK.md
  • @RTK.md reference from %USERPROFILE%\.claude\CLAUDE.md
  • RTK hook entry from %USERPROFILE%\.claude\settings.json

Actual behavior

Uninstall does not complete successfully on Windows.

Additional context

Related to the broader Windows support gap: the hook system (rtk-rewrite.sh) is a bash script and is already flagged as unsupported on Windows during rtk init -g. The uninstall path likely has the same assumptions about the shell environment.

Reported by Benjamin on Discord (Clean Coder community).

Activity

  1. added
    bug
    on Mar 6, 2026
  2. aeppling commented on Mar 6, 2026

    @aeppling
    Contributor

    addressed : #392

  3. pszymkowiak commented on Mar 20, 2026

    @pszymkowiak
    Collaborator

    [w] wshm · Automated triage by AI

    🔍 Automated Triage

    🐛 Category bug
    🟡 Priority medium
    🎯 Confidence 90%

    Summary

    The rtk init -g --uninstall command fails on Windows due to Unix-specific assumptions in the uninstall path; needs Windows-compatible path and shell handling.


    Triaged automatically by wshm · This is an automated analysis, not a human review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugeffort-medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions