You are here

public function MongoDBQueue::deleteQueue in MongoDB 7

Delete a queue and every item in the queue.

Overrides DrupalQueueInterface::deleteQueue

File

mongodb_queue/mongodb_queue.inc, line 146
Contains \MongoDBQueue.

Class

MongoDBQueue

Code

public function deleteQueue() {
  mongodb_collection($this->collection)
    ->drop();
}