From the JSL you provided, you have left out the most critical statement
dt << delete columns( col_names );
This is the line that actually does the deletions. However, in this sample case, it has an additional issue. The final list of columns
{"Genre", "Domestic Gross", "Foreign Gross", "World Gross", "Opening Wknd Gross"}
has the column "World Gross" in it, which is used in the calculation of column "Profitability". When the "delete columns" message is processed it detects the issue and displays in the log
Cannot delete the selected columns while some are referenced by the formulas of remaining columns.
Removing a formula leaves the data unchanged. Removing references replaces each reference with an empty value. These effects are permanent and cannot be undone.
If you delete the formula from the "Profitability" column, it will convert the values to static values,
dt:Profitability << delete formula;
then the "delete columns" will work properly.
Concerning your issue about hovering over a variable to see it's value, and wanting to create a data table to be able to see the values, there is a much simpler way to do that. Rather than hovering over the "col_names" variable, what you need to do, is to highlight it, and then right click and select "Run Script". By rule, if anything in a JMP script is highlighted, the "Run Script" will only run the highlighted lines/statements/variables. The results will be displayed in the log.
Jim