I have a folder in the Root Folder of a message store that I am trying to clear using EmptyFolder(). The code is as follows:<div><br></div><div><div> folder = store.OpenEntry(eid, None, MOD_FLAG)</div><div> hr = folder.EmptyFolder(0, None, 0)</div>
</div><div><br></div><div>I get the error: ' Error: unsupported operand type(s) for &: 'NoneType' and 'int'</div><div><br></div><div>Changing the code to </div><div><br></div><div><div> folder = store.OpenEntry(eid, None, MOD_FLAG)</div>
<div> hr = folder.EmptyFolder(0, 0, 0)</div></div><div><br></div><div>I get the following exception: "Error: The Python instance can not be converted to a COM object"</div><div><br></div><div>This is a command line tool, and I do not need the progress of the operation. Can someone tell me what is the correct way to invoke EmptyFolder()?</div>
<div><br></div><div>Thanks,</div><div>Sriram</div>