Thanks for responding, the dynamic block has 34 visibilty states, each visibilty state has an Ole object an image company Logo pasted from say paintbrush. The aim is that the user selects a client by name their image is made current visibility state, I explode the block so it now becomes a Ole2Frame an image of the client logo etc.
I proceed to look for any other occurrences of this block and delete them, yes they are "*U123" blocks but using effective name are found and deleted.
The original dynamic block is still in the block table, so I tried Purge and Vl delete the block from table, but the images are still in my dwg but as like ghost objects the dwg should be like 800kb at moment can be 32Mb when saved. An audit shows the 34 ole are there and repaired.
I am trying to remove the ole objects from the dynamic block.
The critical step is that went sent to the client they do not see or find the other 33 company logo's. All this with the end user having no idea how all this is working, they just choose client name.
Hope that helps explain. I am using Bricscad V20 so hard to edit the dynamic block.
I can supply code up to get visibilty states from a entget it shows all 34, if that helps.