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 parameters | Description |
| URL | /index/:alias/:index/features/:ids |
| Method | DELETE |
| URL parameters | alias=[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 message | Code: 200, Content: empty. |
| Failure message | Code: 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 DELETEIs this page helpful?