# File lib/puppet/provider/macauthorization/macauthorization.rb, line 101
101:     def destroy
102:         # We explicitly delete here rather than in the flush method.
103:         case resource[:auth_type]
104:         when :right
105:             destroy_right
106:         when :rule
107:             destroy_rule
108:         else
109:             raise Puppet::Error.new("Must specify auth_type when destroying.")
110:         end
111:     end