You do not have to loop through the names. That is, assuming you want all of the columns named in that list to be deleted. Below is a simple example
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );
namesCol = dt << get column names( string, continuous );
dt << delete columns( namesCol );
Jim