Code
<?php

$m 
= new MongoClient();

$test $m->selectDb('test');

$coll $test->selectCollection('my_table');

$success $coll->remove(array(
    
'_id' => new MongoId("54204806895f69383a8b4567")
));

dump($success);
Result
^ array:4 [
"n" => 1
"connectionId" => 11
"err" => null
"ok" => 1.0
]
Used Versions
PHP 8.2, Laminas MVC 3.2, Symfony 5.2, Laravel 8.28, PHPUnit 9.5, Doctrine ORM 2.8