Delete elements from palette in Angular

A lot of the threads here suggest I use this method to delete elements from the palette.
But I’m not sure how to apply it in the context of Angular.

Also I’ve tried using this example. But it’s only about adding new elements as far as I understand.

I’ve set up the project following this guide.

Any help is appreciated. Thanks in advance.

For further assistance, please share a CodeSandbox that reproduces your issue in a way that we can inspect it.