Mongodb cannot create a unique index by setting dropDups: true?

  mongodb, question

The same value already exists in a field in the database. I want to create a unique index for this field and delete the redundant data, so I set dropDups to true when creating the index, but I still report an error and repeat key. What is going on? Or is there any way to quickly delete redundant data?

clipboard.png

clipboard.png