Delete Single Feature
const url = 'https://example.com/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/features/1';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://example.com/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/features/1 \ --header 'Authorization: Bearer <token>'Delete a feature by gid (hard delete).
The X-GeoLens-Tile-Cache-Version response header carries the dataset’s tile_cache_version after the delete committed; a 204 response has no body to carry it in, unlike the create, replace and patch endpoints, which return it as a field of the written feature.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Query Parameters
Section titled “ Query Parameters ”The table_id the feature was read with. If the dataset’s data has been replaced since, the request is refused with 409 and code dataset_replaced, and nothing is written.
The table_id the feature was read with. If the dataset’s data has been replaced since, the request is refused with 409 and code dataset_replaced, and nothing is written.
Responses
Section titled “ Responses ”Feature deleted.
Headers
Section titled “ Headers ”The dataset’s tile_cache_version after this write committed. Send it as the tile routes’ _v query parameter when reloading tiles, so a request that reaches a different API worker is forced to re-read the dataset instead of serving that worker’s own cached snapshot.
Bad request — invalid payload
Unauthorized — missing or invalid credentials
Forbidden — caller lacks write access
Not found
Conflict — resource state prevents the operation
Validation error
Too many requests — retry after the advertised interval
Headers
Section titled “ Headers ”Seconds until the request may be retried
Internal server error
Service unavailable — the database could not serve the request