Removing a single piece of data from a field in collection

I have a repeater that is linked to dynamicDataset and I would like a button to remove just the reference from the collection. Not the whole record.

All I can find is deleting a whole record.

I have this so far…

export function button2_click(event) {
let itemObj = $w("#dynamicDataset").getCurrentItem();

But I’m guessing it’s a bit more complex than this…

The getCurrentItem()( function will get all the data.

If you want to just get a specific field, then simply add your field afterwards like this

Also, as you mention repeaters, have you read about using them and the differences between actions inside a repeater and outside a repeater?

Repeater info in Wix API Reference.$w.Repeater.html

Wix tutorial that shows you about using actions inside (inline actions) and outside (global actions) of a repeater.

Thank you for the references.