Added delete index function