move delete index to teardown