Your Trigger should be like this: (TEST IMAGE is the table name here…)
If Record is selected → save the ID to a variable → clear the Placeholder → delete the record by the ID saved before…