My program is providing a configurable ttl. So I have to check ttl index every time the program starts, if the expire duration isn't correct, I have to re-index it.
I see drop index function in mongoc driver. But it seems there is no such option in mongocxx driver. Am I missing any api or is there any way to access underlying mongoc_collection_t object, so I can call mongoc driver function?