delete items in row

I have seen this code to delete an entire collection. I was wondered if its possible to delete specific items(fields) in a row with code?

export function deleteAll_onClick(event, $w) {
let dataset = $w(“#dynamicDataset”); // or the name of your dataset
dataset.onReady( async () => {
while (dataset.getCurrentItem()) {
await dataset.remove();
}
});
dataset.refresh();
}

This would enable my current collection to display correctly in a repeater as the fields correctly populated in the row below would probably be used as collection for repeater

Hi guys, would something like this work?
import wixData from ‘wix-data’;
export function image22_click(event) {

}

let item = $w(“#dataset4”).getCurrentItem();
wixData.remove(“MyCollection”, item)

               .then( () => { 
                    $w("#dataset4").refresh() 
                    console.log("Done refreshing the dataset"); 
               } ); 

Could i then specify which items to remove? and if so what would i write as code to remove first name and last name fields in a current row prior

or something like this

https://www.wix.com/corvid/forum/community-discussion/delete-item-from-shoppingcart-on-button-click

but used prior to loading the repeater page?