I have a list of mongo \'_id\' which I want to delete. Currently I am doing this
# inactive_users --> list of inactive users for item in inactive_users:
List them all and use $in operator:
$in
db.users.remove({_id:{$in:[id1, id2, id3, ... ]}})