Remove label from OCAF results in shape not removed

I'm trying to remove a label with a shape from the OCAF document. The structure without any modifications is the

Then I'm going to remove PLATE by calling RemoveComponent on label 0:1:1:1:1. Then the structure looks like this and you can see that PLATE has moved up:

Then I'm going to call RemoveShape on what was the referred shape of 0:1:1:1:1 and then you can see that 0:1:1:17 gets removed:

But 0:1:1:17 and 0:1:1:18 are still there and they are also rendered.

I've tried getting all the components of the shape and tried nullifying, forgetting attributes, removeComponent, removeShape, but none of them did anything.

My question is, how can I remove 0:1:1:17 and 0:1:1:18?

Ruud de Ruijter's picture

Got it.