Add a delete_indices helper to delete all indices during tests.

ok