Examples: RemoveAllFromFolder method

This example removes all the documents in the collection from the folder "Spicy" which is in another folder "Recipes."

Sub Click(Source As Button)
  Dim session As New NotesSession
  Dim db As NotesDatabase
  Dim collection As NotesDocumentCollection
  
  Set db = session.CurrentDatabase
  Set collection = db.FTSearch( "cayenne", 20 )
  Call collection.RemoveAllFromFolder( "Recipes\Spicy" )
End Sub