When we add a delete or close button on a list item or another element on the prototype, the button interaction should delete that item. This way, we don't need to create component structures and states. We can restore the deleted item with reset state. I tried to explain it with an image.

The red button was added to delete that row. Within the actions area, there will be a “delete item” feature, such as ‘undo’ and “close” operations. In the green marked area and on the prototype, that button will remove that item.
