deleteAttachments

deleteAttachments

Function
deleteAttachments(requestOptionsIDeleteAttachmentsOptions): Promise<{ deleteAttachmentResults: IEditFeatureResult[] }>

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

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
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
ParameterTypeNotes
requestOptions
IDeleteAttachmentsOptions

Options for the request.

Returns 
Promise<{ deleteAttachmentResults: IEditFeatureResult[] }>

A Promise that will resolve with the deleteAttachments() response.

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