Getting/Deleting a selected record in a grouping table (Data Grid)

I would like to get or delete a selected record in a grouping table. In the Data Grid documentation on GitHub, Grouping Table API, getGroupedSelection is mentioned for this, but I don’t have this method in Developer 2024.3.7 LTS. Is it only in a later version available?
How to delete a selected record in grouping mode?