Skip to content

Uninstall and remove your data

To remove Engineering Corpus from your computer, go through the places it lives, one section each, and stop after the one you came for. Removing the plugin keeps your index, and deleting the data folder keeps the plugin.

The uninstall and uv commands ran against throwaway folders, and their output is real, with long paths shortened to .... The rm -r lines and the Docker commands were not run, and nothing was run on Windows. The repo is not public yet, so the marketplace in these runs was a local folder.

Part Where it lives Section
The plugin, with its server entry and hooks The plugin folders of Claude Code and Codex Claude Code, Codex
A server entry you added yourself The settings of Claude Code or Codex Remove a server you added yourself
Index, repo clones, registry, model files The data folder Delete the data folder
The demo index and the hooks’ state ~/.cache/engineering-corpus Delete the cache folder
The package that runs the server uv’s cache and tool folders Remove what uv keeps
The Docker image and its volume Docker Remove the Docker image and volume

Uninstall the plugin, then remove the marketplace it came from. Both commands use the names the install used:

Terminal window
$ claude plugin uninstall engineering-corpus@engineering-corpus
✔ Successfully uninstalled plugin: engineering-corpus (scope: user)
$ claude plugin list
No plugins installed. Use `claude plugin install` to install a plugin.
$ claude plugin marketplace remove engineering-corpus
✔ Successfully removed marketplace: engineering-corpus

claude plugin uninstall works on the user scope unless you pass --scope project or --scope local. Use the scope you installed with. The seven agents, the seven skills, the plugin’s server entry and its two hooks leave with the plugin.

Removing the marketplace while the plugin is still installed uninstalls it too. That is one command instead of two:

Terminal window
$ claude plugin marketplace remove engineering-corpus
✔ Successfully removed marketplace: engineering-corpus
Also uninstalled 1 plugin from this marketplace:
engineering-corpus@engineering-corpus

Claude Code keeps a copy of the plugin’s files after either order. The run left the plugin’s 19 files, 120 KB, in plugins/cache/engineering-corpus, with an .orphaned_at marker in the version folder. Claude Code deletes an orphaned copy 14 days later, but only while another plugin is still installed. After you remove your last plugin, the copy stays. To remove it yourself, delete the folder:

Terminal window
rm -r ~/.claude/plugins/cache/engineering-corpus

Check the path before you press Enter, because rm -r has no undo. If you set CLAUDE_CODE_PLUGIN_CACHE_DIR, the plugins folder is the one you set instead of ~/.claude/plugins.

A marketplace added from a GitHub address also has a clone in ~/.claude/plugins/marketplaces, and Claude Code’s documentation says removing the marketplace deletes it. I did not see that, because a local folder has no clone.

The plugin keeps no data folder of its own in Claude Code, so --keep-data changes nothing for it.

Terminal window
$ codex plugin remove engineering-corpus@engineering-corpus
Removed plugin `engineering-corpus` from marketplace `engineering-corpus`.
$ codex plugin marketplace remove engineering-corpus
Removed marketplace `engineering-corpus`.

codex plugin remove deletes the plugin’s cached copy: the cache held 19 files after the install and none after the command. It also takes the plugin’s entry out of config.toml in your Codex home folder, which is ~/.codex by default, and codex plugin marketplace remove takes out the marketplace’s entry. The pack has no hooks for Codex, so there are none to remove.

The plugin brings its own server entry, and it leaves with the plugin. A server you added by hand with claude mcp add or codex mcp add stays until you remove it. These runs removed an entry named engineering-corpus that started echo hello in place of the server:

Terminal window
$ claude mcp remove engineering-corpus
Removed MCP server "engineering-corpus" from local config
$ codex mcp remove engineering-corpus
Removed global MCP server 'engineering-corpus'.

claude mcp remove finds the entry in whichever scope holds it: local, user or project. Add -s with a scope name to remove it from one scope only.

The data folder holds everything the engine builds: the search index, a shallow clone of each indexed repo, the registry with each repo’s license verdict, and the model files. The default is the same on every system, because the engine builds it from your home folder:

System Default data folder
macOS ~/.local/share/engineering-corpus
Linux ~/.local/share/engineering-corpus
Windows %USERPROFILE%\.local\share\engineering-corpus

Three things move it, in this order: the --data-dir option, the ENGINEERING_CORPUS_DATA variable and XDG_DATA_HOME, when that holds an absolute path. The configuration page lists the order. If your client starts the server with --data-dir or sets the variable, the folder is the one named in that command or in the client’s settings.

This is a test folder with four small repos. It shows what the folder holds and what takes the room:

Terminal window
$ cd .../data
$ du -sh *
4.0K demo.toml
4.0K format.json
3.9M index
572M models
12K registry.sqlite
584K repos

models is nearly all of it. To delete everything the engine built, delete the folder:

Terminal window
rm -r ~/.local/share/engineering-corpus

The next corpus index builds a new index and downloads the model again.

On Windows, ~ in the engine’s paths is your user folder, %USERPROFILE%. The rm -r lines are for macOS and Linux. In PowerShell the same step is Remove-Item -Recurse $HOME\.local\share\engineering-corpus, which I did not run.

models/ holds the embedding model, about 600 MB, which downloads the first time it is needed. Deleting the folder keeps your index. The next search or demo downloads the model again:

Terminal window
rm -r ~/.local/share/engineering-corpus/models

The deep search’s reranker, about 150 MB, lands in the same folder the first time you run a deep search. The demo takes its model from this folder too, so deleting it makes the demo download again.

corpus remove takes repos out of search, deletes their clones and forgets them in the registry. Name each repo the way corpus search --repo does. On the same four-repo test index:

Terminal window
$ corpus remove github.com/pallets/itsdangerous --data-dir .../data-copy
removed github.com/pallets/itsdangerous

The repos folder went from 584 KB to 388 KB. The index folder did not shrink: it grew from 3,956 KB to 4,024 KB. corpus remove does not clear old index versions, and corpus index clears the ones older than a week. I did not check whether those old versions still hold the removed repo’s text. To get all the room back at once, or to be sure nothing of a repo stays on disk, delete the data folder. corpus index CONFIG --prune removes every registered repo that your config no longer lists.

corpus demo keeps its own index in ~/.cache/engineering-corpus/demo. The hooks keep a small state file for each Claude Code session in ~/.cache/engineering-corpus/hooks: a counter for the limit of three notes a session and short hashes of the queries they have seen, never the query text. A hook deletes files older than 30 days when a new session starts. If XDG_CACHE_HOME is set, the hooks use $XDG_CACHE_HOME/engineering-corpus/hooks, and the demo stays in ~/.cache.

Terminal window
rm -r ~/.cache/engineering-corpus

The plugin starts the server with uvx, pinned to one version of engineering-corpus, and you may have run uv tool install engineering-corpus. Both leave files that uv owns, outside the data folder. The package is on PyPI, so these commands name it. The output here comes from other small packages, cowsay and markdown-it-py, in fresh uv caches and throwaway tool folders, with uv 0.13.6.

uv cache dir and uv tool dir print where uv keeps them on your system. On a Mac they are ~/.cache/uv and ~/.local/share/uv/tools.

If you installed the package as a tool, uninstall it:

Terminal window
$ uv tool uninstall cowsay
Uninstalled 1 executable: cowsay

For this package, that is uv tool uninstall engineering-corpus. The cache comes next. Clear the package’s entries, then prune:

Terminal window
$ uv cache clean cowsay
Removed 19 files (144.0KiB)
$ uv cache prune
Removed 37 files (228.0KiB)

uv cache clean engineering-corpus removes the cached download. The environment that uvx built from it stays until uv cache prune, which removes every cache entry that nothing uses. In the run, a copy of the package was still in the cache after the first command and gone after the second.

A package’s own dependencies can outlast both commands. With markdown-it-py, which needs mdurl, the two commands removed the package and left one copy of mdurl. The real package has dependencies of its own, so expect some of them to stay.

uv cache clean with no package name empties uv’s whole cache, dependencies included, so every tool you run with uvx downloads again the next time.

Not run. The Docker daemon is not running on the Mac that ran the other examples. The names come from the Dockerfile and from the HTTP and Docker page, where each docker run line mounts a volume named corpus at /data:

Terminal window
docker volume rm corpus
docker image rm ghcr.io/ymcbzrgn/engineering-corpus

The volume holds the index, the clones and the model that downloaded inside the container. The image is the one you pulled: docker image ls ghcr.io/ymcbzrgn/engineering-corpus lists the tags you hold, docker image rm ghcr.io/ymcbzrgn/engineering-corpus removes latest, and docker image rm ghcr.io/ymcbzrgn/engineering-corpus:0.1.0 removes the versioned tag. An image you built yourself with the published name, as the HTTP and Docker page describes, is removed the same way. docker volume ls lists your volumes if you named yours differently.

Docker refuses to remove a volume while a container uses it. The docker run lines on the HTTP and Docker page use --rm, so those containers are gone when they stop.

The engine’s own code writes to these places and to no others. This comes from a search of its Python and Rust code for every file write. The libraries it calls were not audited: it gives the vector store the index folder and the model downloader the models folder.

  • The data folder.
  • ~/.cache/engineering-corpus, for the demo and the hooks’ state.
  • A temporary folder in your system’s temp location, while corpus index scans for secrets. It holds a copy of each scanned file and the scanner’s report, and the engine deletes it when the scan ends. A process killed during a scan can leave it behind.
  • Files you ask for with a path: corpus stars writes a slice config to ./stars.toml unless you pass --out, corpus eval --out writes a report, and the developer tools in the package write into the folders you name: corpus chunks, corpus bench, the benchmark scripts and the scripts that regenerate the agent pack and the tools reference.

The engine runs git to clone into the repos folder and Betterleaks to scan, with its report in the temporary folder. Those are the only places it tells either program to write.

The engine reads a GitHub token from GH_TOKEN or GITHUB_TOKEN when it makes a request, and no code path writes it to a file. The engine sends it only to api.github.com, and the clones use the plain repo address with no token.

Some things stay after every step, because they are yours. Your slice configs and reports stay. So does your agent’s conversation history: Claude Code and Codex keep their own sessions, which may hold what the agents returned, and removing the plugin leaves them. Use the client’s own tools to delete those.