Ls question on deleting documents

Hi,

Im trying to do an automated cleanup of the Inbox folder. I just want to delete all documents currently in the inbox but I can’t seem to get a hold of these documents within a NotesDocumentCollection (the db is NOT indexed). And I can’t seem to use a While Not (Doc is Nothing) and the RemovePermanently(True) function.

Any ideas and how I could accomplish this (it has to be in LS and backend).

Thanks

ST

Subject: ls question on deleting documents

its Ok i found the correct call (view.AllEntries)

thanks

ST