import { request , cleanUrl } from "@esri/arcgis-rest-request" ; import { IGetLayerOptions , IEditFeatureResult } from "./helpers" ; /**
 * Request options to for deleting related attachments of a feature by id. See [Delete Attachments](https://developers.arcgis.com/rest/services-reference/delete-attachments.htm) for more information.
 *
 */ export interface IDeleteAttachmentsOptions extends IGetLayerOptions { /**
     * Unique identifier of feature to delete related attachment(s).
     */ featureId : number ; /**
     * Array of unique identifiers of attachments to delete.
     */ attachmentIds : number [ ] ; } param requestOptions returns export function deleteAttachments ( requestOptions ) { const options = { params : { } , ... requestOptions } ; options . params . attachmentIds = requestOptions . attachmentIds ; return request ( `${ cleanUrl ( options . url ) }/${ options . featureId }/deleteAttachments` , options ) ; }