1. Delete documents that contain the specified fields:
db.getCollection('collection name').find().sort({"field name":-1})
db.getCollection('collection name').update({'field name':{$exists:true}}, {$unset:{'field name':''}}, {multi:true})
2. Find documents where a field does not exist:db.getCollection('collection name').find({'field name':{$exists:false}})
3. Multi-field query:db.getCollection('collection name').find({'field1':{$exists:false},'field2':{$exists:true}}).count()
4. The output is displayed according to the specified sorting:db.getCollection('collection name').find().sort({"field name":-1})