Event for link deletion not triggered when a Compass component gets deleted

I’m adding a data provider for components when certain links are added to a component. When a link gets added, I’m setting up some things in the background and I’d like to remove them again when either the link gets deleted or the component gets deleted.

I can react to link deletion events by adding a trigger for the avi:compass:deleted:component_link event (see Compass events) in my manifest. This works fine when a link gets deleted from a component. But I don’t get an event if the whole component gets deleted (and as such, the link should be deleted as well in the background).

Do you know if there’s a workaround? It would be even better if there are similar events for components, e.g. if a component gets deleted or updated, but I’m afraid there’s no way.