Hi Jeffrey.
>I want to develop a program that will delete indexes and rebuild them at any given time.
Have you looked at Stonefield Database Toolkit (SDT)? It can recreate all the indexes for any table you wish with very little effort on your part. You could easily fire it off at a particular time by including its class libraries in an EXE and either using a VFP timer or a Windows scheduling program to call the EXE at the given time.
For more details on SDT, see
www.stonefield.com.
Doug