Deleting data in a collection

Code

<?php
use Hasanmertermis\MilvusPhpClient\Domain\Milvus;

require_once __DIR__ . '/vendor/autoload.php';

$client = new Milvus();
$client->connection("localhost", 19530);
$deleteId = 'exam-uuid-or-string-data';
$deletedIDs = $client->delete('example_collection', $deleteId);
print_r($deletedIDs);

Response

Array
(
    [0] => exam-uuid-or-string-data
)

Video

Last updated