Hi @Antonioclk,
I am back to my office now, a new day.😂
I will test it later and responde here to update...
UPDATE
To check if all the records from ListA existing in ListB, I have a simple demo for your reference.
1). colA has a column named Title, colB has a column named Title.
2). Only1,2,5 from colA exist in colB, so based on your need, you just want to list 1,2,5 in the Gallery and remove 3,4,Tues from colA, right?

3). To delete the elements not existing in colB, you just need to use the RemoveIf():
RemoveIf(colA,!(Title in colB.Title))