- Knowledge center
- eSpatial API
- API Methods
-
Getting Started
-
Video Resources
-
Data (Preparing/Adding/Editing)
-
Radius, Drivetime and Measurement Tool
-
Heat Mapping and Summary Analysis Tool
-
Territory Manager
-
Style
-
Data Table
-
Filtering Data
-
Routing
-
Saving, Exporting and Sharing Maps
-
Deleting
-
Managing / Organizing your Maps (Library)
-
Single Sign-On (SSO)
-
CRM & Data Integrations
-
eSpatial API
-
eSpatial Mobile
-
For Salesforce
-
eSpatial Frequently Asked Questions
-
eSpatial Troubleshooting
deleteFeatures
Information about the deleteFeatures API method
NOTE: This is an Enterprise Feature, it is only available for users who have purchased our Complete Solution Plan.
Purpose
Delete feature(s) in a dataset by passing a layerMetaId (dataset id) and criteria matching the feature(s) to be deleted.
Please Note: Use with extreme care. Deleted features are not recoverable. Recommended criteria to use is an Equal on a unique identifier or And/Equal to use multiple columns as a composite key.
Request URL
DELETE https://maps.espatial.com/esWebAPI/rest/v1b/feature?layerMetaId={LAYER_META_ID}&criteria={CRITERIA}
DELETE https://maps.espatial.com/esWebAPI/rest/v1b/feature?layerMetaId=179995&criteria={"$type":"Equal","attr":"COMPANY_ID","value":"7897564"}
Response
HTTP Response will be true if operation was a success and include a HTTP header "features-removed-count" to indicate number of features removed.