Using an agent to delete and archive documents
Agents give you a very high degree of control over document deletion criteria. However, agents can be slow to run.
The following procedure describes creating an agent using simple actions. You can also create agents using Notes® formulas, LotusScript®, or Java™.
When you run the agent, if Domino® cannot copy all specified documents to an archive database -- for example, if there is not enough disk space on the target folder -- the agent stops.
For more information on Notes® formulas, LotusScript®, and Java™ see HCL Domino® Designer Help.
- (Optional) To archive deleted documents, select to create a copy of the database as the archive copy. Copy only the database design.
- Open the database and select .
- Type a name for the agent.
- For When should this agent run, click the arrow and select an option.
- For Which documents should it act on?, click the arrow and select an option. Click Add Search, specify the search criteria, then click OK.
- (Optional) To archive deleted documents, on the last pane next to Run, select Simple action(s) then click Add Action. Then select Copy to Database and select the archive copy of the database created in Step 1. Click OK and go to Step 8.
- In the last pane next to Run, select Simple action(s) then click Add Action. Then select Delete from Database.
- Close and save the agent. Then select , select the agent and select to simulate a run and test that it works correctly.
- Save and close the agent if necessary.