Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: MongoDB removing document

by Corion (Patriarch)
on Oct 26, 2015 at 19:14 UTC ( [id://1146027]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # delete a document
    $coll->delete_one( { name => "John Doe" } );
    
  2. or download this
    $coll->delete_one( $doc );
    # or maybe
    $coll->delete_one( { _id => $doc->{_id} } );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1146027]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-19 02:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found