benmca[ at ]gmail.com wrote:
[Quoted Text] > On the "What's new for developers in OneNote 2007" website - > http://msdn2.microsoft.com/en-us/office/ms406042.aspx> > The DeleteHierarchy API is documented as > "You can use the DeleteHierarchy method to delete any hierarchy object > (a notebook, section group, section, or page) from the OneNote 2007 > notebook hierarchy." This appears to be a mistake in documentation. OneNote does not have direct support for deleting a notebook. You can either delete the notebook from the filesystem/SharePoint yourself, or you can call the CloseNotebook API, which will remove the notebook from OneNote, but will still keep around the actual files, so you could reopen it later.
Ilya
|