diff --git a/orchagent/aclorch.cpp b/orchagent/aclorch.cpp index 9d2fb1de2e46..7efae768cddf 100644 --- a/orchagent/aclorch.cpp +++ b/orchagent/aclorch.cpp @@ -2588,6 +2588,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) {