button to delete current subset

Hello,

I want to program a button to delete the current set in a grid.

New button-> type php.

In the php I want to retrieve the current set and then delete it.

Any idea?

Best regards,

Martin