Python script to delete features which are 10 years old

1917
0
10-14-2014 04:15 AM
nageshnangi1
New Contributor II

Hi,

We have some feature classes stored in a feature dataset in ArcSDE . I want to delete the features which are older than 10 years from the feature classes using a python script.

Every feature class has an attribute field "LAST EDITED ON". The sample value is in format "10/14/2014 1:31:52 AM".

 

 

Note: The features which are older than 10 years should be deleted from every feature class on daily basis (If there are any).

We are using ArcGIS version 10.1

 

Any help will be appreciated.

 

Thanks in advance.

Satish Kadam

0 Kudos
0 Replies