Delete old calender entries?

Is it possible to delete all calender entries (person calender, not group calender) that are for example 3-4 years old?

/Martin

Subject: Delete old calender entries?

I hate the archive facility, and was bored one day so I wrote an agent to archive old calender entries:Document Selection: In Folder Calender

Action Menu Selection

All Documents in view

This one deletes all entries that are two years old:

FIELD CalendarDateTime:=CalendarDateTime;

tYear:=@Year(CalendarDateTime);

todayYear:=@Year(@Today);

Difference:=@ToNumber(TodayYear)-@ToNumber(tYear);

@If(Difference=2;@DeleteDocument;

“”);

SELECT @All

You can change the difference to delete other entries…be a bit careful, coz once they are gone they are gone!

A possible improvement would be to add a prompt, so the user could select which calender entries they are interested in.

Subject: RE: Delete old calender entries?

The archive settings of the mail file let you create an archiving profile that specifies a view (choose the calendar view) and what to do with the documents (“clean up,” i.e. delete but don’t copy to an archive, in this case).