diff --git a/orchagent/aclorch.cpp b/orchagent/aclorch.cpp index 955f136393..3be19757d9 100644 --- a/orchagent/aclorch.cpp +++ b/orchagent/aclorch.cpp @@ -2525,6 +2525,12 @@ bool AclTable::clear() for (auto& rulepair: rules) { auto& rule = *rulepair.second; + + if (rule.hasCounter()) + { + m_pAclOrch->deregisterFlexCounter(rule); + } + bool suc = rule.remove(); if (!suc) {