Is this not allowed? Any other options to do it?
module tb;
int q[$],t[$];
initial begin
q.push_back(1);
q.push_back(2);
q.push_back(3);
q.push_back(4);
q.push_back(5);
// Would like to delete elements from index 0 to 2 in one call
t = q.delete(item) with (item.index < 3);
$display ("%p",t);
end
endmodule