Skip to content

Delete a geofence
Legacy

Request

⚠️ Legacy endpoint. Android only. Geofence configuration is now managed through blueprints. Use the blueprints endpoints (/api/v2/blueprints/) to create and manage geofences going forward.

Permanently deletes a legacy geofence record by UUID via the create-apply-geofence detail path.

Returns HTTP 204 with an empty body on success. Remove devices from the geofence before deleting the geofence.

Security
esper_cloud_api_apiKey
Path
geofence_idstring, (uuid)required

A UUID string identifying the geofence.

enterprise_idstring, (uuid)required

A UUID string identifying the enterprise.

cURL
curl -i -X DELETE \
  'https://api.esper.io/_mock/openapi/v0/enterprise/{enterprise_id}/create-apply-geofence/{geofence_id}/' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

The resource was deleted successfully.

Response
No content