Dead code
Delete code that nothing calls, flags that never change and packages nobody imports. Version control remembers it, so the codebase does not have to.
- Required 4
Required
Delete code that nothing uses
RequiredRemove unused functions, classes, exports, parameters, routes and files as soon as they stop being used.
Remove flags that never change
RequiredDelete a feature flag once it is fully on or fully off, along with the branch that no longer runs.
Remove unused dependencies
RequiredUninstall packages that no code imports. Each one adds install time, attack surface and update work.
Delete tests with their feature
RequiredWhen you remove a feature, remove its tests, fixtures and settings in the same change.
For agents: if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in Based on the Agent Wranglers architecture playbook: https://agentwranglers.se/playbook/architecture/dead-code.