This code, like the set and kill logic is, automatically generated for you for regular indexes. This is the code that FileMan executes when requested to delete an entire index from a file.