In the documentation for mongoDB it says: \"Changed in version 3.0: The dropDups option is no longer available.\"
Is there anything I can do (other than downgrading)
pip install mongo_remove_duplicate_indexes
best way will be to create a python script or in any language you prefer,iterate the collection ,create new collection with a unique index set to true with db.collectionname.createIndex({'indexname':1},unique:true),and insert your documents from previous collection to new collection and since key you wanted to be distinct or duplicates removed will not be inserted in ur new collection and u can handle the ecxeption easily with exception handling
check out the package source code for the example