deleteAttachments

Function

import { deleteAttachments } from '@esri/arcgis-rest-feature-service';
//
deleteAttachments({
  url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/FeatureServer/0",
  featureId: 8484,
  attachmentIds: [306]
});

Delete existing attachment files of a feature by id. See Delete Attachments for more information.

Parameters

Parameter Type Default Notes
requestOptions Required IDeleteAttachmentsOptions

Options for the request.

Returns

Promise<IDeleteAttachmentsResponse> - A Promise that will resolve with the deleteAttachments() response.


Function defined in packages/arcgis-rest-feature-service/src/deleteAttachments.ts:51