Delete data

Updated at:

This topic describes how to delete data by feature ID.

You can delete features by specifying their feature IDs as follows:
Configuration parametersDescription
URL/index/:alias/:index/features/:ids
MethodDELETE
URL parametersalias=[alphanumeric]: The name of an existing Data Source (DS).index=[alphanumeric]: The name of an existing index.id=[alphanumeric]: The IDs of the features to delete. Separate multiple IDs with commas.
Success messageCode: 200, Content: empty.
Failure messageCode: 400, required parameter not specified. Content: empty.

Example: Delete features with IDs 1 and 2 from the my_index index in my_ds.

 curl \
'localhost:8080/geoserver/geomesa/geojson/index/my_ds/my_index/features/1,2' -X DELETE