diff --git a/src/sonic-yang-models/yang-templates/sonic-policer.yang.j2 b/src/sonic-yang-models/yang-templates/sonic-policer.yang.j2 index 0479d0a1353ca..82d9dc1c2a36c 100644 --- a/src/sonic-yang-models/yang-templates/sonic-policer.yang.j2 +++ b/src/sonic-yang-models/yang-templates/sonic-policer.yang.j2 @@ -14,10 +14,6 @@ module sonic-policer { prefix stypes; } - import sonic-acl { - prefix acl; - } - description "Policer YANG Module for SONiC OS"; revision 2022-02-03 { @@ -123,12 +119,6 @@ module sonic-policer { default "forward"; description "Red action"; } - - /* prevent deletion of polocer that referenced by ACL rule. - Note that new policer won't be referenced by any ACL rules initially */ - must "not(current()/../acl:sonic-acl/acl:ACL_RULE/acl:ACL_RULE_LIST[acl:POLICER_ACTION=current()/name])" { - error-message "Policer cannot be deleted when referenced by an ACL rule."; - } /* end of list POLICER_LIST */ } /* end of container POLICER */