I need to automate the total deletion of a table. We have a program for the creation of new tables, and in some cases it moves a table from one filenumber in the FileList and registers it as a different filenumber. But I've never created automation logic to actually delete a table.

We have an unused "RPTHIST" table that never saw use in the app. I would like to delete it, and then make a new version of "RPTHIST" at a different filenumber, and with totally different fields from the original.

I'm not finding any Set_Attribute arguments to perform the equivalent of Delete Table in dbBuilder.

I do know how to edit FileList programmatically. Maybe... remove the old RPTHIST from the filelist, then do an ERASEFILE for every possible file type?