laptop and a wrench

Bug

Unable to delete hosted feature services containing attachments in batch by a single request.

Last Published: April 27, 2015 ArcGIS Online
Bug ID Number BUG-000085816
SubmittedMarch 3, 2015
Last ModifiedFebruary 13, 2023
SeverityMedium
Applies toArcGIS Online
Version found3.6
Version Fixed3.8
StatusFixed

Workaround

It is not possible to delete multiple features at once through the user interface in ArcGIS Online. This is by design.

However, there is an alternative of doing so from the REST URL. Features in a service can be edited using supported operations from the ArcGIS REST API, which accesses the underlying framework of ArcGIS Online. These supported editing operations include Create, Update, and Delete functions. Users can do batch deletion using Delete Features by the Object IDs.

To delete multiple features from a hosted feature service using the ArcGIS REST API, follow the steps below:

  1. Log in to www.arcgis.com with administrator credentials.
  2. Click My Content, navigate to the intended feature service, and open the feature service.
  3. In the item details page of the feature service, click the hyperlink under Layers. The ArcGIS REST Services Directory page opens.
  4. In the ArcGIS REST Service Directory, scroll down to the Supported Operations, and click Delete Feature. Note that this option is only available if editing has been enabled for the feature service.
  5. Enter the Object IDs of the intended features to be deleted, separated by a comma and space; for example, Object IDs: 3, 5, 258, 6988 ... and so forth.
Batch deletion using REST
  1. Click Delete Features.

There is another alternative to delete multiple records in a feature service using ArcREST. The following link is a sample of Python script to delete rows from a layer: delete_rows_from_service.py.

Workaround

Pass the deleteFeatures request twice if deleting less than 5 features. If deleting more than 5 features, republish the service.

Steps to Reproduce

Bug ID: BUG-000085816

Software:

  • ArcGIS Online

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic