Run Agent on serveral mail databases

Hello,Could somebody tell me how to create an agent that needs to be run automatically on several mail databases to delete unuseful documents. I’ve the manager access to the databases. Or is there somebody who has perhaps another solution to help me to delete, documents with a known subject, in several databases .

Many thanks

Subject: Run Agent on serveral mail databases

I would create a new db with that agent and run it at night. The code might look like:

set targetdb = new NoteDatabase(server, dbpath)

search = |Form=“Memo” & Subject=“xxx”|

set collection = targetdb.Search(search, nothing, 0)

collection.RemoveAll(True)

Of course you can put this in a function with 3 parameters and call that function with the necessary data.