Hi @DB_Gal ,
Could you please share a bit more about your issue?
Do you generate an app based on your SQL Table data source?
Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. I assume that you generated an app (including three generated screens) based on your SQL Table data source, please consider set the OnSelect property of the "Trash" icon to following:
Remove('[dbo].[SQLTable]', BrowseGallery.Selected)
or
RemoveIf('[dbo].[SQLTable]', 'Primary Key Column' = BrowseGallery.Selected.'Primary Key Column')
In addition, please also make sure that you do not define any constraints within your SQL Table to prevent from deleting records from it.
If the issue still exists, please consider take a try with the following workaround:
Add the following formula within the OnSelect property of the Gallery:
...;
Set(CurrentItem, ThisItem) /* <-- Add this formula */
Then modify above formula as below:
RemoveIf('[dbo].[SQLTable]', 'Primary Key Column' = CurrentItem.'Primary Key Column')
or
Remove('[dbo].[SQLTable]', CurrentItem)
Best regards,