in reply to Re: MongoDB removing documentin thread MongoDB removing document
I haven't done any work with MongoDB, but I assume from the following:
# delete a document $coll->delete_one( { name => "John Doe" } ); [download]
... that you can delete a single document given its ID by using:
$coll->delete_one( $doc ); # or maybe $coll->delete_one( { _id => $doc->{_id} } ); [download]
Thank you very much for getting back.
Now I see what you typed it is hard to imagine why I didn't see my mistake in not having $coll as s startpoint to change the collection.