The infusion is already deleting the rules when you hit the stop button, so you don't need to change anything yourself. However, I will make sure that it's still working correctly in latest version of the firmware. As a general matter of fact, I recommend, to avoid changing infusions yourself, otherwise it's getting very difficult for infusion dev to provide any support ! I suggest to get in contact with the dev by PM and suggest the modifications, which could then be integrated into next versi