{"version":"2.1.331","anchor":"cleanup-of-mcp-skill-archives-replaced-with-a-safer-version","canonical_anchor":"cleanup-of-mcp-skill-archives-replaced-with-a-safer-version","heading":"Cleanup of the mcp-skill-archives cache checks the folder before deleting","tier":"internal","area":"MCP","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/cleanup-of-mcp-skill-archives-replaced-with-a-safer-version","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Cleanup of the `mcp-skill-archives` cache checks the folder before deleting\n\nClaude Code now clears the `mcp-skill-archives` cache only after confirming it is a plain folder on the same disk, and removes every entry in it\n\n**What**\n\nClaude Code keeps a cache, a folder of stored files it can rebuild later, and clears it out from time to time. Before, the cleanup went through the cache and deleted entries older than a set age.\n\nNow it deletes the entries under `mcp-skill-archives`, but only after checking two things:\n\n- the folder is a plain folder, not a link to somewhere else\n\n- it sits on the same disk as the rest of the cache\n\nIf either check fails, the folder is left alone and a log message says it stays because it is not known to be a plain folder.\n\n**Why**\n\nThe check stops the cleanup from following a link and deleting files outside the cache. It also removes every entry in the folder, not only old ones.\n\n- Area: MCP\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}