Google-maps removeMarker not working with enableClustering

I can create a Maps view with a number of markers. Then user specifies some filter through some dialog and I want to remove some of the markers.
I can remove the markers based on the ID they got from the addMarker function. The markers will disappear from current view.
BUT: when I zoom out all the removed markers appear again.
Problem is with both removeMarker() and removeMarkers() function.

Using capacitor 5.5.1 + angular 14.

Turns out this problem only occurs when I use the enableClustering() function.

When I first call disableClustering(), then deleteMarker() and in the end enableClustering() everything seems to work well.

1 Like