moved delete_rule into own file, added example to comment