Remove Codex and Claude Skills Cleanly
To remove Codex and Claude skills, delete the folder that contains SKILL.md, then clear any configuration that still points at it. The second step is what separates a clean removal from a skill that keeps resurfacing through a different scope or a stale plugin entry.
Remove Codex and Claude Skills by Deleting Folders
Codex scans several locations, so identify the exact copy first. The user scope is $HOME/.agents/skills, and repository scopes are .agents/skills in the current working directory, a parent folder, or the repository root. The admin scope is /etc/codex/skills. Delete the specific skill directory, not the whole skills folder:
rm -rf ~/.agents/skills/linear
Restart Codex afterward. The documentation says Codex detects skill changes automatically, but a restart removes any ambiguity, especially after a batch deletion.
Codex supports symlinked skill folders and follows the link target when scanning. If the entry you see is a symlink, deleting the link removes it from Codex without touching the shared copy. Deleting the target removes the skill for every project that points at it. Check with ls -l before removing either.
Claude Code keeps personal skills in ~/.claude/skills/<skill-name>/, project skills in .claude/skills/<skill-name>/, and plugin skills inside the plugin directory. Claude watches the personal, project and --add-dir skill directories, so deleting a folder takes effect in the current session. Creating or deleting a top-level skills directory that did not exist when the session started still requires a restart.
Clear Codex Config Entries That Still Point at the Skill
Codex's ~/.codex/config.toml can disable a skill by path. If you delete the folder but leave the entry, the config accumulates references to files that no longer exist. Remove the corresponding block:
[[skills.config]]
path = "/home/you/.agents/skills/linear/SKILL.md"
enabled = false
Delete the two lines that make up the block, save the file, and restart Codex. The same applies to agents/openai.yaml inside a skill you keep: if the skill is gone, the metadata is dead weight.
If you use a shared repository config, check the repository copy too. A path that is valid on one machine may point at nothing on another.
A stale entry is mostly harmless at runtime, but it misleads the next reader and can resurface if someone restores a folder at the same path with different behavior. Treat the config file as part of the skill's footprint, not as a separate concern.
Disable a Skill Instead of Removing It
Disabling is the reversible option. In Codex, keep the folder and set enabled = false in config.toml. In Claude Code, keep the skill and change its frontmatter: user-invocable: false hides it from the slash menu, and disable-model-invocation: true stops automatic loading.
The tradeoff is context. A disabled Codex skill no longer needs to be described in the initial list, so the deletion and the disable produce a similar effect on selection. A Claude skill with disable-model-invocation: true stops keeping its description in context, while user-invocable: false keeps the description in context but removes the command. Choose the flag that matches what you want gone.
Disable when you are testing whether a skill is responsible for a bad match. Delete when you have confirmed it and do not intend to restore it. Disabling also keeps the skill's license and supporting files in place, which matters if you plan to re-enable it after an experiment.
Uninstall Claude Code Plugin Skills
anthropics/skills arrives as a plugin marketplace, not as loose folders you manage one by one. Installation is documented through /plugin marketplace add anthropics/skills followed by a plugin install such as /plugin install document-skills@anthropic-agent-skills.
The Claude Code skills documentation does not document an uninstall command for these plugin skills. Remove the plugin through the same plugin marketplace interface you used to add it, and treat the whole plugin as the unit. Deleting a single folder inside an installed plugin is not a supported way to remove one skill, because the plugin remains registered and may restore the files on refresh.
If you only need one skill gone and it ships in a larger set, remove the plugin and reinstall without that set. That keeps the plugin registry consistent with what is actually on disk.
After removal, check the plugin directory to confirm the skill folder is gone. Plugin skills use the plugin-name:skill-name namespace, so a leftover shows up under that prefixed name rather than the bare skill name.
Confirm Nothing Still Loads
Start a new session rather than trusting the old one. In Codex, run the skill selector and search for the name; if it appears, a second copy exists in another scope. In Claude Code, open the / menu and check both the bare name and the plugin-prefixed name.
Then search the filesystem for the skill name:
find ~/.agents ~/.claude /etc/codex -maxdepth 4 -iname "*linear*" 2>/dev/null
Check the description text too, not just the folder name. A remaining copy in another scope can look identical in the selector, and its description is what keeps matching prompts.
Any hit is a remaining copy or a stale config reference. Remove it and restart the client.
Before deleting a repository-scoped skill, check whether teammates rely on it. A skill committed under .agents/skills is shared through version control, so removing it is a code change that should go through review like any other.
Keep one rule: one skill name, one scope. That makes removal predictable and prevents the common failure where a deleted skill returns because a repository copy or a plugin still provides it. For the scope model behind these paths, read control which skills load; for the install side of the same workflow, see install OpenAI and Anthropic skills.
FAQ
For Codex, delete the folder and restart the client. For Claude Code, deleting a folder under a watched skills directory takes effect in the current session.
Disable it when you want to keep the files and its dependencies for later. Delete it when you want the description out of context and no chance of accidental invocation.
Remove the whole plugin through the plugin marketplace interface you used to install it, then check the plugin directory for leftovers under the plugin-name:skill-name namespace.
A second copy is usually still registered in another scope, such as a repository .agents/skills folder, the user folder, or a plugin directory.
Related Terms
- Skill scope
- One of the locations a client scans for skills, such as a repository folder, the user home directory, or an admin path.— OpenAI Codex documentation
- Orphaned skill
- A skill folder or config entry that remains after the skill is no longer wanted, often left behind by a manual deletion.— Agent Skills specification
- Plugin namespace
- The plugin-name:skill-name prefix Claude Code uses for plugin skills, which keeps them separate from personal and project skills.— Anthropic Claude Code documentation
Sources
- Agent Skills in Codex· OpenAI
- Extend Claude with skills· Anthropic
- anthropics/skills README· Anthropic