Which MongoDB shell command deletes a single document?

  •  db.customers.delete({_id: 1});
  •  db.customers.drop({_id: 1});
  •  db.drop.customers({_id: 1});
  •  db.customers.remove({_id: 1});

Leave a Reply

Your email address will not be published. Required fields are marked *