From memory:

The virtual index is by doing the create_index logic, but do NOT wrap it in a structure_start and end block.
Then do the delete_index in time, to clear from memory.