Remove data table

Description: Remove a data table.
Assumptions: An optional 'myTable' data table type script parameter.
Warning: Backup Spotfire files before removing data tables.

#Pick one of the following data table reference methods:
#myTable = Application.Document.Data.Tables['MyDataTable']        #Name method
#myTable = Application.Document.ActiveDataTableReference          #Active data table method
#myTable = Application.Document.Data.Tables.DefaultTableReference #Default data table method
#myTable as a data table type script parameter                    #Script parameter method

#Application.Document.Data.Tables.Remove('DeleteMe') #Name method
Application.Document.Data.Tables.Remove(myTable)    #Data table method