clear /ip firewall connection remove [find] clear with loop 3x :for i from=1 to=3 do={ :do { /ip firewall connection remove [find] } on-error={ }; delay 1 } add delay 1 second & suppress errors to prevent script stopped