How to Delete Docs from a View (AGENT)

I have tryed with a SCRIPT like:[SELECT Form = “MyForm”] to select the Docs witch are to be deleted.

But allways i try the AGENT, he wants to delete all Docs in the Database…(!)

On the Test Run comes every time 100 Docs but in the View are only 50 Docs with this Form.

How can i delete Docs witch are located in a view or Selected by a Form Type?

Thanks in advance for any help

Volkan S.

Subject: Look at your agent’s trigger (WAS: How to Delete Docs from a View (AGENT))

Subject: RE: Look at your agent’s trigger (WAS: How to Delete Docs from a View (AGENT))

Using LS1. opent the view sorted on 1st column “Form”.

  1. Set notesDocumentCollection = notesView.GetAllDocumentsByKey( “Form”,True).

  2. Call notesDocumentCollection.RemoveAll(true)

Subject: RE: Look at your agent’s trigger (WAS: How to Delete Docs from a View (AGENT))

Thanks , its works now :wink: