I want to update my index but there are no functions like delete_index in mongoengine to delete an index by its name.
User._get_collection().dropIndex(index_name)
Yes this method worked but we have to use drop_index which is provided in the pymongo layer of mongoengine.
Most helpful comment