Hi,
Hopefully someone can help me with this problem. I’m currently trying to write a piece of LotusScript that when run on a users mailfile will identify a certain folder and delete that folder all of the subfolders (if they exist) and all content within the folders.
Has anyone done something like this before? Or if someone has ideas please let me know…
Thanks,
Ian
Subject: Delete Folder\SubFolders and contents
You could use something like that
If the folder’s title equals X then delete documents and folder
From Andre Guirard’s blog
Clean up empty folders
JYR
Subject: RE: Delete Folder\SubFolders and contents
Thanks for that, I’ve got something like this working however it will not delete the documents. It deleted the folders however the docs remain in the ‘All Documents’ view…
Ian
Subject: RE: Delete Folder\SubFolders and contents
NotesView.AllEntries.RemoveAll
Take care, however – if a document appears in multiple folders, there’s just one copy, and deleting it will remove it from all folders. If you don’t like that, you might have to search through all the folders to find whether it appears anywhere else.
Subject: RE: Delete Folder\SubFolders and contents
That looks like it could help with the problem.Thanks for the info.
Ian