Remove results from service

The Remove Data from Feature Service tool removes all data from a feature service layer that matches a specified SQL query.

To use this tool to remove data from a feature service, ensure you meet the tool's requirements. Below are the criteria and usage of the Remove Data from Feature Service tool:

  • This tool must be run from within ArcMap.
  • You must be logged into an ArcGIS organization or provide the credentials of a built in organization user (if running 10.2.1).
  • The target feature layer must have the Delete edit capability enabled or the user must have full editing privileges.

Remove Data from Feature Service

Below are the parameters needed to run the Remove Data from Feature Service tool:

Parameter Explanation Data Type
User Name User name used to log into an ArcGIS organization. This parameter is only available at ArcGIS 10.2.1 and must use a built in user. Otherwise, you must be logged into the organization through ArcMap. String
Password Password used to log into an ArcGIS Organization. This parameter is only available at ArcGIS 10.2.1. Otherwise, you must be logged into your organization through ArcMap. String Hidden
Organization URL The URL to your ArcGIS organization. This parameter is only available at ArcGIS 10.2.1. Otherwise, you must be logged into the organization through ArcMap. String
Feature Service ID The ID of the feature service. String
Layer Names Names of the layers to remove features from separated by a comma. For example: Layer1,Layer2,Layer3. String
SQL SQL Expression to define which features will be removed. To remove all features, use the expression 1=1. String
Show Entire Response Option to show the entire response from the service. Boolean
Top