Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 200 Bytes

delete-one.md

File metadata and controls

12 lines (10 loc) · 200 Bytes

How to delete a document by id

You can use the deleteOne method:

db.getCollection('price-data')
  .deleteOne(
    {
      '_id': ObjectId('625c9f9429ab7ab51461e092')
    }
  );