Removing Elements from a Container

Hi,

I have a repeater that is populated from a dataset.
After the rows are retrieved, I perform (in the code) a query from another collections to get more data.
According to this data, I would like to remove some of the items presented in the repeater.
Is it possible?
this is my Code

export function repeater1_itemReady($w, itemData, index) {

wixData.query("collection2") 
        .eq("memberId", itemData._owner) 
        .find() 
         .then( (results) => { 
               **if**  (results.items.length  > 0 ) { 
                            // all o.k show item 
               }  **else**  { 
                     // here i would like to remove the item from the repeater 
                     // i didn't find how to remove an item from a repeater 
             } 
        } ) 
        . **catch** ( (err) => { 
       console.log(err); 
        } ); 

}

Hello

Best way i would recommend to remove an item from a repeater is by applying a filter to the repeaters data set. check filtering a data set - here

you can as well do that by getting the repeaters data and removing the items based on the query then setting the repeaters data to the new one. check repeater documentation - here

I hope this helps

Best
Massa