Something like this should work: (though it may be more complicated depending on the condition you're using to exclude rows)
dt = data table("Your Table Name");
dt<< delete column(column("1st Column to Delete"));
dt<< delete column(column("2nd Column to Delete"));
dt<<select where(/*condition for excluding*/);
dt<<exclude;