rename Delete_index function to index.delete