public static void DeleteFeature(IFeatureClass theFC, int OID) { try { IFeature theNF = theFC.GetFeature(OID); if (theNF != null) { theNF.Delete(); } } catch (Exception ex) { } }