add delete index implementation