var featureLayer = (FeatureLayer)mapView.Map.OperationalLayers[0]; var featureTable = featureLayer.FeatureTable; var objectId = 1234; var featureToDelete = await featureTable.QueryAsync(objectId); await featureTable.DeleteAsync(featureToDelete);
var featureLayer = (FeatureLayer)mapView.Map.OperationalLayers[0]; var featureTable = featureLayer.FeatureTable; var query = new QueryParameters { WhereClause = "POPULATION < 1000" }; var featuresToDelete = await featureTable.QueryAsync(query); foreach (var feature in featuresToDelete) { await featureTable.DeleteAsync(feature); }In both examples, the package library used is Esri.ArcGISRuntime.Data.