added methods to delete index, and query for new index.