public function purgeQueue($queueName = '')
    {
        if (! in_array($queueName, $this->config['queues'])) {
            throw new ModuleException(__CLASS__, "'$queueName' doesn't exist in queues config list");
        }

        $this->getChannel()->queue_purge($queueName, true);
    }
public function purgeQueue($queueName = '')
    {
        if (! in_array($queueName, $this->config['queues'])) {
            throw new ModuleException(__CLASS__, "'$queueName' doesn't exist in queues config list");
        }

        $this->getChannel()->queue_purge($queueName, true);
    }
public function purgeQueue ( $ queueName = '' ) { if ( ! in_array ( $ queueName , $ this -> config [ 'queues' ] ) ) { throw new ModuleException ( __CLASS__ , "'$queueName' doesn't exist in queues config list" ) ; } $ this -> getChannel ( ) -> queue_purge ( $ queueName , true ) ; }
Purge a specific queue defined in config.

``` php
<?php
$I->purgeQueue('queue.emails');
?>
```

@param string $queueName
Purge a specific queue defined in config .