Skip to content


Function : Folders
FolderDocRemoveAll - Removes all documents from a folder

#include <foldman.h>

    DBHANDLE  hDataDB,
    DBHANDLE  hFolderDB,
    NOTEID  FolderNoteID,
    DWORD  dwFlags);
Description :

This function removes all documents from a specified folder. Subfolders and documents within the subfolders are not removed.

Parameters : Input : hDataDB - The handle to the open database where the folder resides.

hFolderDB - Must be NULLHANDLE.

FolderNoteID - NOTEID of folder whose documents will be removed.

dwFlags - Reserved for future use. Specify 0L.

Output : (routine) - Return status of the call - indicates either success or what the error is. The return codes include:


ERR_xxx - Error returned by lower level functions. Call OSLoadString to interpret the code.

Sample Usage :

error = FolderDocRemoveAll (hDB, NULLHANDLE, FNoteID, 0L);
See Also : FolderCopy FolderCreate FolderDelete FolderDocAdd FolderDocCount FolderDocRemove FolderMove FolderRename