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: &#39; Error: unsupported operand type(s) for &amp;: &#39;NoneType&#39; and &#39;int&#39;</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: &quot;Error: The Python instance can not be converted to a COM object&quot;</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>