I'm attempting to apply delete feature to a very large dataset in AGOL & it's timing out.
The dataset is a polygon feature class.
I can't use truncate because the feature class is sync enabled.
Couple of questions:
1. What is the maximum number of records the ArcGIS API can handle for delete and append functions — 10,000 records?
2. Any python tips and tricks to make this happen?
I'm new to python, so please provide scripts with comments 🙂
import arcpy
import arcgis
from arcgis.gis import GIS
from arcgis.features import FeatureLayer
gis = GIS("https://xyz.arcgis.com", username="xyz", password="xyz")
feature_layer_item = gis.content.search('7a4b389c86f74ab8bd8da440e1a87db4', item_type = 'Feature Service')[0]
flayers = feature_layer_item.layers
flayer = flayers[0]
flayer.delete_features(where="OBJECTID >= 0")