例: RemoveAllFromFolder method (NotesViewEntryCollection - LotusScript®)

次のスクリプトは、[Christmas] フォルダの「craft projects」というカテゴリにあるすべての文書をすべて削除し、[Leisure time] フォルダに移動します。

Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim vc As NotesViewEntryCollection
Set db = session.CurrentDatabase
Set view = db.GetView("Christmas")
view.AutoUpdate = False
Set vc = view.GetAllEntriesByKey("craft projects")
Call vc.RemoveAllFromFolder("Christmas")
Call vc.PutAllInfolder("Leisure time")