Select Help > Scripting Index > Objects > Data Filter > Delete. There you will find the same example:
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Cities.jmp" );
obj = dt << Data Filter(
Add Filter(
columns( :Region, :POP ),
where( :Region == {"C", "N"} )
),
Mode( Select( 0 ), Show( 0 ), Include( 1 ) )
);
obj << Columns( :Region, :SO2, :CO, :State );
Wait( 1 );
obj << Delete( {:State} );