code: def purge(self, queue):
          
          if not compatibility.is_string(queue):
              raise AMQPInvalidArgument('queue should be a string')
  
          purge_frame = pamqp_queue.Purge(queue=queue)
  
          return self._channel.rpc_request(purge_frame)
docs: Purge a Queue.
  
          :param str queue: Queue name
  
          :raises AMQPInvalidArgument: Invalid Parameters
          :raises AMQPChannelError: Raises if the channel encountered an error.
          :raises AMQPConnectionError: Raises if the connection
                                       encountered an error.
  
          :rtype: dict