This is a sample start for your agent in LotusScript – See the admin help file to schedule it
It’s nearly the same with the java class.
Dim session As new NotesSession
Dim db as NotesDatabase
Dim view as NotesView
Dim colentry as NotesViewEntryCollection
Set db = session.CurrentDatabase
set view = db.GetView( “YourViewName”) ‘ <= you have to change that !
Set colentry = view.AllEntries
Call colentry.RemoveAll( True )