Delete documents in a view

Hi All,

I need to write an agent on a xpage unload event to delete documents from a particular view .how can i do this

shana

Subject: Is this possible…Pls answer…this is very urgent