I haven't done any work with MongoDB, but I assume from the following:
# delete a document $coll->delete_one( { name => "John Doe" } );
... that you can delete a single document given its ID by using:
$coll->delete_one( $doc ); # or maybe $coll->delete_one( { _id => $doc->{_id} } );
In reply to Re^3: MongoDB removing document
by Corion
in thread MongoDB removing document
by GertMT
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |