mark rows for deletion

I think I need a snippet for this. Seems like the “Mark row(s) for Deletion” works on the first row in a model or all selected rows in model.