add endpoint to the index, add delete index option to the repo interface