How to delete object

 
Anybody know how to code delete all object arrows for the last month but keep all arrows for the current month.
 

1. Remember in a variable the start date of current month, for ex.: datetime month_current = D'2010.10.01 00:00';

2. Loop through all objects on the chart.

3. If it is an arrow and its time is less than month_current, delete it.

Reason: