In mongodb, how to remove all documents that miss a certain fields -


db.getcollection('db').find({img:{$exists:false}}) 

is great @ finding documents want delete.

db.getcollection('db').remove({img:{$exists:false}}) 

does not delete them: removed 0 record(s) in 70ms why ? how can achieve ?

don't use robomongo ... mongo client