docs: def delete_index_item(item, model_name, refresh=True):
      '''
      Deletes an item from the index.
      :param item: must be a serializable object.
      :param model_name: doctype, which must also be the model name.
      :param refresh: a boolean that determines whether to refresh the index, making all operations performed since the last refresh
      immediately available for search, instead of needing to wait for the scheduled Elasticsearch execution. Defaults to True.
      '''
      src = Bungiesearch()
  
      logger.info('Getting index for model {}.'.format(model_name))
      for index_name in src.get_index(model_name):
          index_instance = src.get_model_index(model_name)
          item_es_id = index_instance.fields['_id'].value(item)
          try:
              src.get_es_instance().delete(index_name, model_name, item_es_id)
          except NotFoundError as e:
              logger.warning('NotFoundError: could not delete {}.{} from index {}: {}.'.format(model_name, item_es_id, index_name, str(e)))
  
          if refresh:
              src.get_es_instance().indices.refresh(index=index_name)