How to make allAsset array weak

In the last example, we created an allAsset array that created an array of strong pointers to each asset. How can we make the array instead store weak pointers, so that when an employee is removed, his/her assets are automatically removed from the allAssets list as well?