Surely the commenter means deleting them in the code, not just the management software. Otherwise, what's the point?
You need to find every occurrence of flag4 and remove references to it. So that boolean expression would need to have `&& flag4` removed.