deleteAttachments
FunctiondeleteAttachments(requestOptions: IDeleteAttachmentsOptions): Promise<{ deleteAttachmentResults: IEditFeatureResult[] }>
Delete existing attachment files of a feature by id. See Delete Attachments for more information.
import { deleteAttachments } from '@esri/arcgis-rest-feature-service';
//
deleteAttachments({
url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/FeatureServer/0",
featureId: 8484,
attachmentIds: [306]
});
Parameters
Parameter | Type | Notes |
---|---|---|
request | IDeleteAttachmentsOptions | Options for the request. |
Returns
Promise<{ deleteAttachmentResults: IEditFeatureResult[] }>
A Promise that will resolve with the deleteAttachments()
response.