import { request , cleanUrl , appendCustomParams } from "@esri/arcgis-rest-request" ; import { ISharedEditOptions , IEditFeatureResult , ISharedQueryOptions } from "./helpers" ; /**
 * Delete features request options. See the [REST Documentation](https://developers.arcgis.com/rest/services-reference/delete-features.htm) for more information.
 *
 */ export interface IDeleteFeaturesOptions extends ISharedEditOptions , ISharedQueryOptions { /**
     * Array of objectIds to delete.
     */ objectIds : number [ ] ; } param deleteFeaturesRequestOptions returns export function deleteFeatures ( requestOptions ) { const url = `${ cleanUrl ( requestOptions . url ) }/deleteFeatures` ; const options = appendCustomParams < IDeleteFeaturesOptions > ( requestOptions , [ "where" , "objectIds" , "gdbVersion" , "returnEditMoment" , "rollbackOnFailure" ] , { params : { ... requestOptions . params } } ) ; return request ( url , options ) ; }