Finished delete index functionality