Deleting an Object which is also contained by several Lists


#1

If I have multiple multiple instances of Object of type A containing each a List of Objects of type B, what happens if I delete a specific instance of the Object type B contained by one or more of those lists . Will each List be automatically updated by removing that specific instance?

example
Product 1 {
name: Product 1,
listIngredients: Ingredient1, Ingredient2, Ingredient3
}

Product 2 {
name: Product 2.
listIngredients: Ingredient3, Ingredient4
}

If I then delete Ingredient3 (an instance of object B), will listIngredients of Product1, and Product2, still contain Ingredient3?