delete function in rules.inc file