Fahad Ahammed
  • Home
  • About
  • Photography
By Fahad Ahammed in mongo — Oct 22, 2020

Date Query in MongoDB

You have some data in MongoDB with date object in them. You want to delete data from certain date, then here it is:-

db.COLLECTION.remove({created_at: {$gt: ISODate('2020-10-22')}})
Previous issue

Some git tips to survive in versioning world - Part 1

Next issue

What does eval() do in Python?

Fahad Ahammed © 2025
  • Sign up
Powered by Ghost