{"version":"2.1.282","anchor":"old-file-cleanup-also-clears-access-audit-and-checks-each-di","canonical_anchor":"old-file-cleanup-also-clears-access-audit-and-checks-each-di","heading":"Old access-audit files are now cleaned up, and cleanup checks folders more carefully","tier":"notice","area":"Elsewhere","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.282\/e\/old-file-cleanup-also-clears-access-audit-and-checks-each-di","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.282","markdown":"### Old access-audit files are now cleaned up, and cleanup checks folders more carefully\n\nRoutine cleanup of old files now includes the access-audit folder and skips or stops on folders that are links or get swapped mid-cleanup\n\n**What**\n\nClaude Code periodically deletes old files from folders inside its configuration directory. That cleanup now covers these folders:\n\n- `todos`\n\n- `statsig`\n\n- `logs`\n\n- `access-audit` (newly included)\n\nBefore deleting anything, it now checks that each folder is a real folder and not a symbolic link (a shortcut pointing somewhere else), and skips it if not. It also stops if the folder is replaced by a different one while files are being deleted.\n\n**Why**\n\nAccess-audit logs no longer pile up forever. The extra checks close a gap where swapping a folder for a link at the wrong moment could have made the cleanup delete files outside the configuration directory.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 2\/5"}