You are here

public function KeyvalueMongodb::deleteAll in MongoDB 8

Deletes all items from the key/value store.

Overrides KeyValueStoreInterface::deleteAll

File

src/KeyvalueMongodb.php, line 213

Class

KeyvalueMongodb
This class holds a MongoDB key-value backend.

Namespace

Drupal\mongodb

Code

public function deleteAll() {
  $this
    ->collection()
    ->remove(array());
}