deleteFeatures

deleteFeatures

Function
deleteFeatures(requestOptionsIDeleteFeaturesOptions): Promise<{ deleteResults: IEditFeatureResult[] }>

Delete features request. See the REST Documentation for more information.

Use dark colors for code blocksCopy
1
2
3
4
5
6
import { deleteFeatures } from '@esri/arcgis-rest-feature-service';
//
deleteFeatures({
  url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/FeatureServer/0",
  objectIds: [1,2,3]
});
Parameters
ParameterType
requestOptions
IDeleteFeaturesOptions
Returns 
Promise<{ deleteResults: IEditFeatureResult[] }>

A Promise that will resolve with the deleteFeatures response.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.