MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / uninstall

Method uninstall

src/agents/codex.rs:69–86  ·  view source on GitHub ↗
(&self, ctx: &InstallContext)

Source from the content-addressed store, hash-verified

67 }
68
69 fn uninstall(&self, ctx: &InstallContext) -> Result<()> {
70 let codex_dir = ctx.home.join(".codex");
71 let config_path = codex_dir.join("config.toml");
72
73 uninstall_mcp_server(&config_path)?;
74 uninstall_codex_plugin(&ctx.home)?;
75
76 let agents_md = codex_dir.join("AGENTS.md");
77 uninstall_prompt_rules(&agents_md);
78
79 uninstall_hooks(&codex_dir.join("hooks.json"));
80 uninstall_codex_repo_plugin_if_present(ctx)?;
81
82 eprintln!();
83 eprintln!("Uninstall complete. TraceDecay has been removed from Codex CLI.");
84 eprintln!("Start a new Codex session for changes to take effect.");
85 Ok(())
86 }
87
88 fn update_plugin(&self, ctx: &InstallContext) -> Result<UpdatePluginOutcome> {
89 let cached_dirs = codex_plugin_cached_install_dirs(&ctx.home);

Callers

nothing calls this directly

Calls 5

uninstall_codex_pluginFunction · 0.85
uninstall_hooksFunction · 0.85
uninstall_mcp_serverFunction · 0.70
uninstall_prompt_rulesFunction · 0.70

Tested by

no test coverage detected