You are here

public function MongoBatchBackend::delete in MongoDB 8

Loads a batch.

Parameters

int $id: The ID of the batch to delete.

Overrides BatchStorageInterface::delete

File

src/MongoBatchBackend.php, line 95
Contains \Drupal\mongodb\MongoBatchBackend.

Class

MongoBatchBackend

Namespace

Drupal\mongodb

Code

public function delete($id) {
  $this
    ->mongoCollection()
    ->remove([
    '_id' => (int) $id,
  ]);
}