How to get/assign the filtered records from Read only Grid

Certified Associate Developer

I have the UI which loads the record type data in Read only grid. I used 3 filters to filter the records from record type in the Grid.

In my requirement, I need to delete the filtered records from DB on "Delete" action,

Anyone knows how to assign the filtered records displayed in Read only Grid to the local variable. Where i can use that record set to delete.

Or any other suggestion to delete the filtered records.

  Discussion posts and replies are publicly visible