Service/Crud.php
public function delete(Repository $repository, $id)
    {
        if (!$id) {
            throw new \RuntimeException('Missing _id field for update operations.');
        }

        if (!$this->read($repository, $id)) {
            throw new NoDocumentsToGetException("Identifier not found!");
        }

        $repository->getManager()->bulk('delete', $repository->getType(), ['_id' => $id]);
    }
public function delete(Repository $repository, $id)
    {
        if (!$id) {
            throw new \RuntimeException('Missing _id field for update operations.');
        }

        if (!$this->read($repository, $id)) {
            throw new NoDocumentsToGetException("Identifier not found!");
        }

        $repository->getManager()->bulk('delete', $repository->getType(), ['_id' => $id]);
    }
{@inheritdoc}