>Yes, but you have to explicitly erase the .IDX file that you create yourself with the ERASE command or an equivalant. there's no such thing as an auto-self-destructing index file.
>
>Do I have to erase it or can I just overwrite it the next time the program runs?
You can overwrite it, certainly, but it's one more unneeded file using up disk space and a directory entry if you don't ERASE it when you're done and it's not needed. The structural CDX of a cursor gets cleaned up automagically, and if your cursor is writable, it's one file for as many tags as you like rather than one per index as required by .IDX files.