try to call eTransmitUpgradeOMatic.purgeUnused() twice
def purgeUnsed(currentDoc):
if eTransmit is not None:
for _ in range(2):
eTransmitUpgradeOMatic = eTransmit.eTransmitUpgradeOMatic(app)
resultPurg = eTransmitUpgradeOMatic.purgeUnused(currentDoc)
return resultPurg
return "Failed"
Seriously this is the fastest way to make a ‘no one can open this anymore, so just delete the file’… though I think it is protected to the point of ‘you can’t do that’ in the file format now…