function drush_queue_delete

master queue.drush.inc drush_queue_delete($queue_name)

Command callback for drush queue-delete.

Parameters

$queue_name: Arbitrary string. The name of the queue to work with.

Return value

int

File

commands/core/queue.drush.inc, line 124

Code

function drush_queue_delete($queue_name) {
  $drush_queue = drush_queue_get_class();
  $queue = $drush_queue->getQueue($queue_name);
  $queue->deleteQueue();

  drush_log(dt('All items in @name queue deleted.', array('@name' => $queue_name)), LogLevel::OK);
}