cancel
Showing results for 
Search instead for 
Did you mean: 
Create a Post
Highlighted

Deletion of disabled rules in R80.10

Dear Team,

 

I am doing rule-base optimization in R80.10, So I have disabled lot of rules manually. How can I delete all disabled rules in faster way?(If you recommend for API, then kindly give complete procedure to accomplish this)

 

0 Kudos
3 Replies
Highlighted
Admin
Admin

Re: Deletion of disabled rules in R80.10

API is the best answer.
Not sure anyone's coded up this specific use case yet, though.
0 Kudos
Highlighted
Platinum

Re: Deletion of disabled rules in R80.10

Loop over all policies and search (select) all rules with "enabled==false" and get UID of all rules.

then delete all rules with matched UID.

Kind regards,
Jozko Mrkvicka
0 Kudos
Highlighted
Admin
Admin

Re: Deletion of disabled rules in R80.10

You could modify the script here with the above advice to achieve the desired result: https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Disable-Delete-Rules-with-a-Zero-...
0 Kudos