    # File lib/chef/knife.rb, line 484
        def delete_object(klass, name, delete_name=nil, &block)
          confirm("Do you really want to delete #{name}")

          if Kernel.block_given?
            object = block.call
          else
            object = klass.load(name)
            object.destroy
          end

          output(format_for_display(object)) if config[:print_after]

          obj_name = delete_name ? "#{delete_name}[#{name}]" : object
          self.msg("Deleted #{obj_name}")
        end