Add method to delete a non-empty index.