We are wanting to track Santa for our annual Parade Routes. We want to delete our practice routes we created in Tracker and have tried the script in the AGO Notebook:
https://host.domain.com/webadaptor/rest/services/Hosted/location_tracking/FeatureServer/0/deleteFeatures
Which results in a invalid syntax error.
Any suggestions or ideas?
Can you post more information? Which notebook did you try? What errors are you seeing?
ArcGIS Notebook Python 3 Standard 4.0
File "<ipython-input-5-0ec303b38de1>", line 1
SyntaxError: invalid syntax
Thank you for replying.
We ended up using the code below:
layers=item.layerslayer = layers[0]layer.delete_features (where = "Activity = 5")
Where Activity 5 is Automotive.
Alternatively to delete all values the where clause can be changed to where ObjectID > 0
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.