delete unused rules (closes #3577)