# File lib/puppet/provider/macauthorization/macauthorization.rb, line 138
138:   def destroy_rule
139:     authdb = Plist::parse_xml(AuthDB)
140:     authdb_rules = authdb["rules"].dup
141:     if authdb_rules[resource[:name]]
142:       begin
143:         authdb["rules"].delete(resource[:name])
144:         Plist::Emit.save_plist(authdb, AuthDB)
145:       rescue Errno::EACCES => e
146:         raise Puppet::Error.new("Error saving #{AuthDB}: #{e}")
147:       end
148:     end
149:   end