# File lib/bunny/queue08.rb, line 166
    def delete(opts = {})
      # ignore the :nowait option if passed, otherwise program will hang waiting for a
      # response that will not be sent by the server
      opts.delete(:nowait)

      opts = { :queue => name, :nowait => false }.merge(opts)

      client.send_frame(Qrack::Protocol::Queue::Delete.new(opts))

      method = client.next_method

      client.check_response(method, Qrack::Protocol::Queue::DeleteOk, "Error deleting queue #{name}")

      client.queues.delete(name)

      # return confirmation
      :delete_ok
    end