HELP! Is there any method fetch delete event?

There are several ways to trigger an agent, but what I need is to let my agent(or any external progarm) know “Which documents are deleted”.So, could anyone please tell me some tips or hints about this problem.

Subject: HELP!! Is there any method fetch delete event?

hihava a look at the databasescript-events Querydocumentdelete or Postdocumentdelete:

You can define a collection = Source.Documents

and you have the documents to delete or deleted

Subject: RE: HELP!! Is there any method fetch delete event?

Hi,

I have the same requirement of delete event. Databasescript-events happen under UI operation. I want to sync Contacts and Calendar with other systems when users add/modify the document. The agent program works fine when a document is added or modified. However, it is never triggered if the use delete contacts from web and by sync of local and server. Is there any way to trigger an agent in background (no UI) when a user deletes documents? Scheduled synchronization delays too much time and generate heavy loading on server for every user.