Removing existing uniqueness constraint

I have a collection, and I added an index for that collection with unique: true, I deleted the index, then I tried creating documents in that collection but I still got the instance not unique even though I have already deleted the index that previously added that constraint.

Are you still getting instance not unique errors, now that it’s about a day later? If it did start working, do you have an idea how long it took for it to take effect?

1 Like

I tried for 5 to 10 minutes because I thought that it’s just taking a while to update, but I found that really odd because the collection has 2 documents in it. It still didn’t work so I simply decided to delete the collection and recreate it together with the indexes, that’s when it worked.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.