Hi, I am having problems deleting all features within my feature layer using the following code. I'm guessing my mistake is in the reqstring . I am having a heck of a time trying to find examples of URL's that will delete all my features. Any suggestions?
Solved! Go to Solution.
It is pretty straightforward. I'm just new to rest. Here is a good example in case anyone seeing this is wondering
string whereClause = "field_id>-1";
string reqString = "https://services1.arcgis.com/0PfllXX1nvjR0pWI/arcgis/rest/services/SHAPEFILE/FeatureServer/0/deleteF...=" + whereClause;
Since all features have a field_id greater than -1, all features get deleted.
Now I need to figure out how to export a feature service as a shapefile using rest. If I find something useful, I will post it here....
It is pretty straightforward. I'm just new to rest. Here is a good example in case anyone seeing this is wondering
string whereClause = "field_id>-1";
string reqString = "https://services1.arcgis.com/0PfllXX1nvjR0pWI/arcgis/rest/services/SHAPEFILE/FeatureServer/0/deleteF...=" + whereClause;
Since all features have a field_id greater than -1, all features get deleted.
Now I need to figure out how to export a feature service as a shapefile using rest. If I find something useful, I will post it here....