allow to use delete instead of retract in rule consequences
(cherry picked from commit a8f98ecb2a32a24606084394896c29d0a7250f31)