Ottoman index issue

I accidentally removed a document via n1ql, which was originally created using ottoman. The index key was set to email address. And when I try to create new document with same email, it throws the CAS Already Exist error.

Error:
The key already exists in the server. If you have supplied a CAS then the key exists with a CAS value different than specified

I assume the because I removed the document from n1ql, the index is stuck somewhere and not allowing me to use the same email address again.

Is there anyway I can clear or flush this particular CAS entry from index ??

Hey @dhavaln,

This typically occurs if you have refdoc indexes in place for a particular model in Ottoman. When you deleted the root document, you did not delete the referential document that went with it. If you delete the referential documents related to document which was deleted, everything should function as expected.

Cheers, Brett

All the reference documents are also removed via n1ql only.

Any other way to reload the index !!