src/Api/Queue.php
public function purgeMessages($vhost, $name)
    {
        return $this->client->send(sprintf('/api/queues/%s/%s/contents', urlencode($vhost), urlencode($name)), 'DELETE');
    }
public function purgeMessages($vhost, $name)
    {
        return $this->client->send(sprintf('/api/queues/%s/%s/contents', urlencode($vhost), urlencode($name)), 'DELETE');
    }
public function purgeMessages ( $ vhost , $ name ) { return $ this -> client -> send ( sprintf ( '/api/queues/%s/%s/contents' , urlencode ( $ vhost ) , urlencode ( $ name ) ) , 'DELETE' ) ; }
Contents of a queue. DELETE to purge. Note you can't GET this.

@param string $vhost
@param string $name
@return array
Contents of a queue . DELETE to purge . Note you can t GET this .