According to the documentation, the way to remove the digital signatures is this (in VBScript):
set a = XDocument.SignedDataBlocks("BuyerSection").Signatures(0).SignatureBlockXmlNode
set a = nothing
It executes without any warning nor message, but on the screen the data is still locked. Then I select manually Tools/Digital signatures... from the menu and it does not show any digital signature so I close the Digital signatures window and then the data is unlocked on the screen. I don't know why this is so. Do I have to execute some kind of refresh command? I couldn't find anything else in the documentation and I tried all the commands that have anything to do with digital signatures but there is no way to complete the unlock on the screen automatically.
Have any of you found how to complete the removal of the signatures automatically?