I have several duplicate fields with under score characters in a feature class that I would like to delete. How can this be accomplished using ArcPy? My code below lists the fields, what steps should be executed next to delete anything in field_names
?
fc= "featureclass"
field_names = [f.name for f in arcpy.ListFields(fc)]
print field_names
Output:
[u'OBJECTID', u'JOBID', u'MOBILEID', u'COMPANY', u'ADDRESS', u'CITY', u'ZIPCODE', u'WORKSTATUS', u'WTBDTDATE', u'WTBDTTIME', u'WORKTYPE', u'LATTITUDE', u'LONGITUDE', u'DAYS_OVERDUE', u'OVERDUE_STATUS', u'SHAPE', u'STATUS', u'ZONEID', u'PRIORITY', u'ORIGPRIORITY', u'NEXTJOBID', u'MOBILE', u'DESCRIPTION', u'REGION', u'DISTRICT', u'COMPANY_1', u'SHAPE_LEN_1', u'MOBILE_1', u'DESCRIPTION_1', u'REGION_1', u'DISTRICT_1', u'COMPANY_12', u'SHAPE_LEN_12', u'WORSTOFFENDER', u'SHAPE.AREA', u'SHAPE.LEN']