Mark Delete Row using Snippet

I am using following block of code to mark rows in model for deletion.

if(delQliPri.data.length &gt;0){<br>&nbsp; &nbsp; $.each(delQliPri.data,function(i,row){<br>&nbsp; &nbsp; console.log('RowID------&gt;',row.Id);<br>&nbsp; &nbsp; delQliPri.deleteRow({Id:row.Id});<br>&nbsp; &nbsp;&nbsp;});<br>}

but it is doing nothing. Don’t understand where it is wrong. Help me in understanding it. I tried to implement it from this Skuid document

I see deleteRow() but I don’t see abandonAllRows()

Yes, I want to mark row for deletion. So on save of the model row will be deleted from Salesforce database. I believe abandonAllRows() is to remove data from model, that won’t delete any data from Salesforce database.

Are you trying to delete all of the rows in the  model?  If so, instead of delQliPri.data, use delQliPri.getAllRows() in the each statement.  Also, call deleteRow(row), instead of {Id:row.Id}

Thank you Peter, this helped me.