How to delete all the data tables except one by ironPython?


I am fairly new in Spotfire, so I am still exploring many basic things in Spotfire. I was using the below code in ironPython to delete all the existing data table in my file.

for dataTable in Document.Data.Tables:


But I was looking for an option to delete all but one particular table in my file. I was wondering is there any way to do that.

If you knew any way please share.

Thanks in advance.




(1) Answer