Esri's Geotrigger Service is replacing Geoloqi! Learn More | FAQ

location/delete_batch/:id

URL

https://api.geoloqi.com/1/location/delete_batch/:id

Description

Deletes the specified batch of locations. You can get a batch ID by querying location history and setting batch=true in the query string. You will get a batch ID that can be used to delete the locations that came back in the response.

This both improves the internal efficiency of deleting the points, and prevents you from unexpectedly deleting location data that you have not yet retrieved.

Response

If the delete was successful, you will get back the number of points that were deleted.

{
  "deleted":530
}

If you try to delete a batch that was already deleted, you will get back a 304 Not Modified response.

{
  "error_code":304,
  "error":"not_modified",
  "error_description":"This batch was already deleted"
}