@echo off
chcp 65001 >nul
setlocal EnableExtensions
set "INSTALL_DIR=%LOCALAPPDATA%\YOHOHOHO\ImagePlugin"
set "SKILL_DIR=%USERPROFILE%\.codex\skills\yohohoho-image"
set "CONFIG_DIR=%USERPROFILE%\.codex\yohohoho-image"

where codex >nul 2>nul
if not errorlevel 1 call codex mcp remove yohohoho-image >nul 2>nul
if exist "%SKILL_DIR%" rmdir /S /Q "%SKILL_DIR%"
if exist "%CONFIG_DIR%" rmdir /S /Q "%CONFIG_DIR%"

echo [YOHOHOHO] MCP 注册、Skill 和本地加密配置已移除。
echo 请关闭 Codex 后删除以下目录（如仍存在）：
echo %INSTALL_DIR%
pause
exit /b 0
