I have tried the same steps as mentioned in documentation to deletion from container a particular item which are as follows:
In the container, add a button widget on the same line as the input widget labelled Fruit type, with the following properties:
1.Label: Remove this fruit
2.Alignment: right
3.Style: danger
4.Action: Remove from collection
5.Collection: $collection, to point to the current collection, fruits
6.Remove: Item, to remove the current item related to this line